hi. i want to access a property of an object i add in game to a scene with the addObjectActuator. but i don’t know how to get the name of the object?
I’m sure there is a way to get the last added object …
-Luke
hi. i want to access a property of an object i add in game to a scene with the addObjectActuator. but i don’t know how to get the name of the object?
I’m sure there is a way to get the last added object …
-Luke
-You can use the getObject() method for any object you add, and append it in a list(every time the Add Object Actuator is positive).The last item list is what you need.
Ben