arma2-epoch-server/MPMissions/DayZ_Epoch_24.Napf/logistic/lift/drop.sqf

14 lines
527 B
Plaintext
Raw Normal View History

2022-04-21 16:15:41 +03:00
if (LOG_INPROGRESS) then{
[STR_LOG_INPROGRESS,COLOR_ERROR] call SAM_SAYS;
}else{
LOG_INPROGRESS = true;
private ["_carrier","_object"];
_carrier = _this select 0;
_object = _carrier getVariable "LOG_heliporte";
_carrier setVariable ["LOG_heliporte", objNull, true];
_object setVariable ["LOG_moves_by", objNull, true];
[_object] call LOG_FNCT_DETACH_AND_SAVE;
[format [STR_LOG_DROPPED, getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "displayName")],COLOR_SUCCESS] call SAM_SAYS;
LOG_INPROGRESS = false;
};