How to set a value on "Collide Actor" in a collisi
Posted: Tue Apr 11, 2006 12:21 am
I have a scenario where multiple circles move around the screen and collides with squares. Each time one collides with a square I need to update a value (myVar1) on that square.
I have a script setup on the circles to execute when they collide with a square. I can't seem to find a way to reference the square actor from the script. Here is what I tried. Some other functions can reference the collide actor this way. (Visibility State for example.)
Anyone know how to do this without using getAllActorInCollision and then searching the returned actors to see if the square is there?
Thanks...
I have a script setup on the circles to execute when they collide with a square. I can't seem to find a way to reference the square actor from the script. Here is what I tried. Some other functions can reference the collide actor this way. (Visibility State for example.)
- Code: Select all
getclone("Collide Actor")->myVar1 += 1;
Anyone know how to do this without using getAllActorInCollision and then searching the returned actors to see if the square is there?
Thanks...