newbie actor collision question
Posted:
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
Posted:
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");
}
Posted:
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
Posted:
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??
Posted:
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