mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Jerry Can - only set global var on server (#5131)
This commit is contained in:
parent
7c7d779250
commit
12f42ab39a
@ -22,7 +22,9 @@ if (isNull _target ||
|
||||
{_target isKindOf "AllVehicles"} ||
|
||||
{_target getVariable [QGVAR(jerryCan), false]}) exitWith {};
|
||||
|
||||
[_target, _fuelAmount] call FUNC(setFuel);
|
||||
if (isServer) then {
|
||||
[_target, _fuelAmount] call FUNC(setFuel); // has global effects
|
||||
};
|
||||
_target setVariable [QGVAR(jerryCan), true];
|
||||
_target setVariable [QGVAR(source), _target];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user