mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
Fix refuel trucks, add upgraded trucks to array
Issue was: A. with locality, we were checking the wrong vehicle in one instance and B. with variable names, since we called local_setFuel and _vehicle was private already from the calling script we ran into an issue with duplicate variables causing the command to fail. local_setFuel doesnt really need any local variable so I removed them and this fixed the issue (script filters may need to be adjusted accordingly)
This commit is contained in:
@@ -1,3 +1 @@
|
||||
_vehicle = _this select 0;
|
||||
_qty = _this select 1;
|
||||
_vehicle setFuel _qty;
|
||||
(_this select 0) setFuel (_this select 1);
|
||||
Reference in New Issue
Block a user