Posted By: Ch40zzC0d3r
Collision event for many Entities - 05/06/13 12:27
Hey guys!
Today I got stuck. Im trying to code a grenade launcher so far everythign works fine. But I want to recognize if the grenade has hit something, so I read the manual and got this piece of code:
It seems the event is only triggered when its one of the entities I insert there :|
I know this is right but how should I do this for EVERY entity I have in my level? o.0
I dont want to loop through them all.
Does someone has got an Idea?
Thanks in advance, Ch40zz.
Today I got stuck. Im trying to code a grenade launcher so far everythign works fine. But I want to recognize if the grenade has hit something, so I read the manual and got this piece of code:
Code:
pXent_setcollisionflag ( entity1, entity2, var event)
It seems the event is only triggered when its one of the entities I insert there :|
I know this is right but how should I do this for EVERY entity I have in my level? o.0
I dont want to loop through them all.
Does someone has got an Idea?
Thanks in advance, Ch40zz.