Explosion

i have a grenade and when it expodes i need the explosion to send a message for every object it hits and the subject is the name of the object it hits so the object will know it is hit i have tried and have not got it to work correctly

have you tried python?

yes i added all the hit objects to a list and send the message to the first one on the list then delete the first one on the list but for some reasom it wont delete


del = Hit_Objs[0]
Hit_Objs.remove(del)

it dont work

AJust use logic bricks and have the hitable objects check for a collision with an explosion and activate an end object actuator. You can’t delete an object from python like you were expecting, you have to call an end object actuator, FROM the object. It’s a bit messy.

i try to delete the first object from the list not the object it hits