mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
18 lines
670 B
Plaintext
18 lines
670 B
Plaintext
_logic = _this select 0;
|
|
_units = _this select 1;
|
|
_activated = _this select 2;
|
|
|
|
if (_activated) then {
|
|
_explosive = gettext (configfile >> "cfgvehicles" >> typeof _logic >> "explosive");
|
|
if (_explosive != "") then {
|
|
_explosive = createvehicle [_explosive,position _logic,[],0,"none"];
|
|
_explosive attachto [_logic];
|
|
|
|
//--- Show hint to curator who placed the object
|
|
[[["Curator","PlaceMines"],nil,nil,nil,nil,nil,nil,true],"bis_fnc_advHint",_logic] call bis_fnc_mp;
|
|
|
|
waituntil {sleep 0.1; isnull _explosive || isnull _logic || !alive _logic};
|
|
if (isnull _logic) then {deletevehicle _explosive;} else {_explosive setdamage 1;};
|
|
deletevehicle _logic;
|
|
};
|
|
}; |