OnVehicleSpawn & SetVehicleHealth
#4

Quote:
Originally Posted by Johurt
Посмотреть сообщение
? I know how to create and respawn vehicle... I don't understand why my script don't call OnVehicleDeath when car explodes(when i sets vehicle health 230).
Quote:
Originally Posted by Johurt
Посмотреть сообщение
Код:
public OnVehicleSpawn(vehicleid)
{
     SetVehicleHealth(vehicleid, 230);
     return 1;
}
Vehicle explodes but OnVehicleDeath don't call. How to fix it?
P.S: Timers can't help ;/
You set the vehicle's health when it re-spawns (after its death) and assuming from that code, it will set the health to 230 which result in fire AGAIN.
Reply


Messages In This Thread
OnVehicleSpawn & SetVehicleHealth - by Johurt - 07.10.2013, 08:38
Re: OnVehicleSpawn & SetVehicleHealth - by Scrillex - 07.10.2013, 09:20
Re: OnVehicleSpawn & SetVehicleHealth - by Johurt - 07.10.2013, 11:40
Re: OnVehicleSpawn & SetVehicleHealth - by Konstantinos - 07.10.2013, 11:44
Re: OnVehicleSpawn & SetVehicleHealth - by Johurt - 07.10.2013, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)