Car explosion prevention.
#1

Is there a way to stop cars exploding when flipping and taking too much damage, stay on fire, but not explode?
Reply
#2

Yeah, OnVehicleTakeDamge(..)

under that header put

pawn Код:
if(health < 300) // Health being the correct variable for it found in the header.
{
       SetVehicleHealth(vehicleid, 350);
       return 1;
}
Note: I'm unsure if health is the correct interger to check the vehicles health, it will be noted in the command header.
Reply
#3

If you set health to 350, it wont stay on fire..
Reply
#4

The car sets on fire at 240 hp, but it blows up regardless, so I'm wondering if there is a way to make it, not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)