Page 1 of 1

newbie actor collision question

PostPosted: Fri Nov 25, 2005 5:32 pm
by shady7twenty4
i have two actors i want actor 1 to be destroyed when it has a collision with actor 2 when actor 2 has a certin animation and when actor 2 has a diffrent animation i want actor 1 to be destroyed upon collision right now my actor 1 is destroyed updon collison of actor 2 with any animation please help or atleast let me know if that makes sense

PostPosted: Fri Nov 25, 2005 9:37 pm
by makslane
In the Collision event between actor1 and actor2,
Put a script like this:

Code: Select all
if(actor2.animindex == 2) //2 depends of your animation
{
    DestroyActor("Actor2");
}


Or, more generic:

Code: Select all
if(collide.animindex == 2) //2 depends of your animation
{
    DestroyActor("Collide Actor");
}

PostPosted: Sat Nov 26, 2005 5:49 pm
by shady7twenty4
not working where you put depends of your animation do i put the name of the animation or wat

PostPosted: Sat Nov 26, 2005 7:10 pm
by Game A Gogo
you put the number of the animation, 0 is the firts animation 3 is the fourth animation, ect...

you get it??

PostPosted: Sat Nov 26, 2005 9:11 pm
by shady7twenty4
ok i figured it out i didnt know the animations had numbers thanks but i will post with more qs later

PostPosted: Sun Nov 27, 2005 12:00 am
by makslane