mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update fire_monitor.sqf
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
private["_firePlace","_ok","_mags","_serial","_qty","_countr"];
|
private["_firePlace","_ok","_mags","_serial","_qty","_countr","_fuel","_classname"];
|
||||||
_firePlace = _this;
|
_firePlace = _this;
|
||||||
|
|
||||||
while {alive _firePlace} do {
|
while {alive _firePlace} do {
|
||||||
@@ -12,20 +12,20 @@ while {alive _firePlace} do {
|
|||||||
_serial = -1;
|
_serial = -1;
|
||||||
{
|
{
|
||||||
private ["_find"];
|
private ["_find"];
|
||||||
|
|
||||||
_find = ((_mags select 0) find _x);
|
_find = ((_mags select 0) find _x);
|
||||||
|
|
||||||
if (_find >= 0) exitwith { _serial = _find; };
|
if (_find >= 0) exitwith { _serial = _find; };
|
||||||
|
|
||||||
} count _fuel;
|
} count _fuel;
|
||||||
|
|
||||||
_qty = 0;
|
_qty = 0;
|
||||||
_classname = "";
|
_classname = "";
|
||||||
if (_serial >= 0) then {
|
if (_serial >= 0) then {
|
||||||
_classname = (_mags select 0) select _serial;
|
_classname = (_mags select 0) select _serial;
|
||||||
_qty = (_mags select 1) select _serial;
|
_qty = (_mags select 1) select _serial;
|
||||||
};
|
};
|
||||||
|
|
||||||
_ok = false;
|
_ok = false;
|
||||||
if (_qty > 0) then {
|
if (_qty > 0) then {
|
||||||
_qty = _qty - 1;
|
_qty = _qty - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user