My actor have 2 animation:
open = animindex 0
close = animindex 1
now I want when bullet collide with my actor, check it if animindex == 1 destroy it. i used this code:
bullet -> collision (Any side of my actor) -> Script Editor
- Code: Select all
switch (animindex)
{
case 1:
DestroyActor("Oghab_Wall1");
DestroyActor("White_Bullet");
}
but when my animindex is 0 or 1, destroy my actor.
Please Guide Me.