Hello,
I have a problem and I hope that you can help me.
My project has an actor class which is called "Person". Moreover the actor class has a subclass which is called "Tent", and this subclass has subclasses,too. Their names are Tent1 and Tent2.
The Tent 1 and Tent2 Classes contain a lot of procedures and functions.
In my project you can place the person on one of the different tents.
Now I would like to find out, in the Person class, on which tent the Person stands and I would like to use the methods of the tent the person stands on.
Therefore I have written this code:
But this code doesn't work. I found out that the first line works with the following code, but then i can't use the functions and procedures of the Tent Classes.
What can I do?
public void Test() { Tent t = getOneObjectAtOffset(0, 0, Tent.class); tent.useVoidXXX; // This is only an example for a tent void; }
Actor t = getOneObjectAtOffset(0, 0, Tent.class);