I’m trying to set a global (GameLogic) property to the name of a specific object when a script runs on it. The same script runs on a series of objects, and I need to change the name property depending which object runs the script.
This maybe has something to do with the code:
ObjectName = scene.getObjectList()["Object1"]
However I’m not sure how to implement it to do this. Any suggestions?
In semi-pseudo code it would be something like this:
if script conditions met: GameLogic.ObjectName = Owner.getObjectName()