One actor controlling others
IsabelleK
Member, Sous Chef Posts: 2,807
Hello,
I'm trying to make an actor, which would be able to control other actor. I mean: when player touch actor A, then actors B and C will be f.e. destroyed.
Could you help me with this?
Thank you.
I'm trying to make an actor, which would be able to control other actor. I mean: when player touch actor A, then actors B and C will be f.e. destroyed.
Could you help me with this?
Thank you.
Comments
I.E.
You have "actor A" controlling "actor B".
Create an integer variable called "actor_B_exist".
Set the value to "1".
Put a rule in "actor_A" ------ when actor_A is touched change attribute "actor_B_exist" to "0".
Put a rule in "actor_B" ------ when attribute "actor_B_exist" is = "0" destroy this actor.
Hope this will help. Bye!