Constraining attributes to spawned actors
I want to constrain an actors position to another actor that will be spawned. Obviously I cannot simply select the attribute from the drop down table. Is there a text formula that I can type to constrain the data, or will it need to be a fixed attribute? Each time something is spawned I would change the actors name, hence knowing which actor to look for in the layer
Answers
Hi @IcedB
There's no way of getting access to the name of an actor that's not on screen, whether you change its name or nor when spawning. And you can't use the constrain behaviour in the actor to be spawned, constraining another actor's position to it, because being a prototype in the Library you can't access other actors there either.
THe only way I can think of is to have an actor constrain to another actor is to have both of the actors already in use. So in place of the spawned actor, you could have it hidden outside of the visible screen area. When this needs to be used, change its x,y coordinates to place it on-screen and the constrain with a boolean "switch".
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps