Page 1 of 1

Get animindex of Collide Actor?!

PostPosted: Tue Sep 20, 2011 12:35 pm
by Rufus 01
Hi Guys,

like in the Headline of this thread, I don't know how I can get the animindex of the Collide Actor.
The Problem is, I think I can't use Variables because I have a lot of cloned actors (450). :roll:

Any Ideas?! Would be great if anyone could help me :wink:

Re: Get animindex of Collide Actor?!

PostPosted: Tue Sep 20, 2011 12:56 pm
by Jagmaster
I don't think it matters how many clones you have. You can use variables. Just keep in mind, they are not magic numbers.

You'll want an actor variable if you want multiple actors using this event and each one having their own value, or global if you want one value for the actors to use.

First create your variable.

On collision of actor to be checked.
Code: Select all
variable=collide.animindex;

That should do it.

I'm pretty sure you can't collide on anything other than collision events.

Re: Get animindex of Collide Actor?!

PostPosted: Tue Sep 20, 2011 1:00 pm
by Rufus 01
Ohhh f, this was to easy :mrgreen:
I try it, I will give u the feedback in a few minutes :wink:

Re: Get animindex of Collide Actor?!

PostPosted: Tue Sep 20, 2011 1:02 pm
by Rufus 01
Okay, thaaaanks it's working fine :lol:

Re: Get animindex of Collide Actor?!

PostPosted: Tue Sep 20, 2011 1:06 pm
by Jagmaster
Glad it worked. :)