Is it possible to apply different ID to same actor?
greedydady
Member Posts: 35
I am working on a function which allow me to spawn 3 "same" actor in "different ID" (Because i dont want to manage too much actor later). Than i am using those 3 different ID to load different data from table into them.
Here is how i work:
First of all, I have an actor call A with 3 attribute inside (slot1-3). I constrain the 3 slot to 3 boolean in tables. What i do after is applying a rule whenever clicking on actor "A", if slot 1-3 is false, it spawn 3 actors (which they are the same actor, lets call it to 3 different positions. Than the B itself contain an attribute called "ID" and have a rule which will apply different "ID" from the table according to it's position(so we now have B1,B2,B3). The B have a rule that will turn that boolean in table into true so that whenever B1,B2,B3 each of them stay in there position and i click on A, they wont spawn repeatly. Than if i destroy the B, it will turn that boolean into false again, this loop allow me to respawn the B from clicking on A whenever B1,2 or 3 destroy. But i than find out it is not working. Says if i destroy 2, or 3, i than click on A. It wont respawn, sometimes it does. But only 3.
So my question is, is it possible to apply different ID to same actor? so that i dont need to create a lot of "same" actor.
Here is how i work:
First of all, I have an actor call A with 3 attribute inside (slot1-3). I constrain the 3 slot to 3 boolean in tables. What i do after is applying a rule whenever clicking on actor "A", if slot 1-3 is false, it spawn 3 actors (which they are the same actor, lets call it to 3 different positions. Than the B itself contain an attribute called "ID" and have a rule which will apply different "ID" from the table according to it's position(so we now have B1,B2,B3). The B have a rule that will turn that boolean in table into true so that whenever B1,B2,B3 each of them stay in there position and i click on A, they wont spawn repeatly. Than if i destroy the B, it will turn that boolean into false again, this loop allow me to respawn the B from clicking on A whenever B1,2 or 3 destroy. But i than find out it is not working. Says if i destroy 2, or 3, i than click on A. It wont respawn, sometimes it does. But only 3.
So my question is, is it possible to apply different ID to same actor? so that i dont need to create a lot of "same" actor.
Comments