problem with clone-kind-of stuff
Posted: Mon May 11, 2009 2:08 am
i need this code to send an activation event to all actors colliding with the target actor, iv'e been up for ever and really can't see a problem with this. to make sure the problem wasn't the other code i just had on activation event play sound....didn't get any sound though......
- Code: Select all
int n;
Actor *actors;
actors = getAllActorsInCollision("EventActor", &n);
if(actors)
{
int i;
for(i = 0; i < n; i++)
{
SendActivationEvent(actors->clonename);
}
}