I have an instance variable on my Player object called "Nearby".... it is a text value that records which "House" object is closest (at the current time it's just preset to the only house, "House_01"). The house object also has an instance variable, "Entry", which is a preset number supposed to determine the speed the physics object Player enters the house.
What I am trying to do here is use the combined strings to return the "House_01.Entry" instance variable value as a number... eg. the string (Player.Nearby)&".Entry" should return the text string "House_01.Entry", which when tested in game with a text object is exactly what happens. What I actually want it to return is the numerical value of the instance variable "House_01.Entry" which I have currently preset to 20, but all I can get it to do is provide me with the text name. when I put int or float in front of the string eg. float((Player.Nearby)&".Entry") and test it the only value I get in return is 0 and never the 20 I have preset the instance variable to be. However, whenever I directly input "House_01.Entry" into the equation without using the string it reads it's numerical value.
Is there any way that my string can be read as an instance variable/object expression so I can use it's value in my actions?