Making Gas System
#1

Hi... im making a Gas system but it seems that the value of the "Gas" variable for each vehicle wont get setted with any value.... i have this
Код:
public OnVehicleSpawn(vehicleid)
{
 Engine[vehicleid] = false;
 Gas[vehicleid] = 50;
 return 1;
}
but the Gas[vehicleid] = 50; wont get that value... why is that
Reply
#2

This isn't called when the vehicle spawns, only when it respawns after being blown up or script-side respawned.
Reply
#3

At OnGameModeInit, after all the vehicles have spawned, loop through them all, and install the gas there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)