Infinite Fuel & Ammo
Ammo
Choose a vehicle and place it down. Then double-click on it and insert this code into the init field:
this addEventHandler ["Fired",{(_this select 0) setVehicleAmmo 1}]Put this in the init field of the vehicle:
this addEventHandler ["Fired",{(_this select 0) setVehicleAmmo 1}]And put this in the Expression field of the Vehicle Respawn module:
params ["_newVehicle","_oldVehicle"]; _newVehicle addEventHandler ["fired", {(_this select 0) setVehicleAmmo 1}];Fuel
Code 1
Put this in the init field of the vehicle:
this spawn {while {alive _this} do {uisleep 300; _this setFuel 1}};And put this in the Expression field of the Vehicle Respawn module:
params ["_newVehicle","_oldVehicle"]; _newVehicle spawn {while {alive _this} do {uisleep 300; _this setFuel 1}};Code 2
Put this in the init field of the vehicle:
this addEventHandler ["Fuel", {(_this select 0) setFuel 1}];And put this in the Expression field of the Vehicle Respawn module:
_newVehicle addEventHandler ["Fuel", {(_this select 0) setFuel 1}];Last updated