Epoch/Sources/epoch_code/compile/EPOCH_interact.sqf
2015-12-07 10:24:52 -06:00

32 lines
832 B
Plaintext

/*
Author: Aaron Clark - EpochMod.com
Contributors:
Description:
store all interacted vehicles for update
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_code/compile/EPOCH_interact.sqf
*/
private ["_vehSlot"];
0 call EPOCH_refeshUI;
if (!isNull _this) then {
_vehSlot = _this getVariable ["VEHICLE_SLOT", "ABORT"];
if (_vehSlot != "ABORT") then {
if !(_this in EPOCH_arr_interactedObjs) then {
EPOCH_arr_interactedObjs pushBack _this;
};
};
_storSlot = _this getVariable["STORAGE_SLOT", "ABORT"];
if (_storSlot != "ABORT") then {
if !(_this in EPOCH_arr_interactedObjs) then {
EPOCH_arr_interactedObjs pushBack _this;
};
};
};
true