by d-soldier » Fri Jul 27, 2007 4:17 am
.. I would recommend setting up a variable (actor, not global) called "health".
On the car's create-actor script, put:
health=3;
still on the car, add a collision event (to the egg) and on that collision event script:
health-=1;
and in the car's DRAW actor script:
if (health<=0)
{
DestroyActor("Event Actor");
}
thats it.