Page 1 of 1

How to set a value on "Collide Actor" in a collisi

PostPosted: Tue Apr 11, 2006 12:21 am
by fauldran
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.)

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...

PostPosted: Tue Apr 11, 2006 1:12 am
by makslane
You must use:

collide.myVar1 += 1;

PostPosted: Tue Apr 11, 2006 1:27 am
by fauldran
Aahhhh...

I knew the answer would be simple. Thanks!