Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- DMS_fnc_TargetsKilled
- Created by eraser1
- Usage:
- [
- _unit,
- _group,
- _object
- ] call DMS_fnc_TargetsKilled;
- Will accept non-array argument of group, unit, or object.
- */
- if (_this isEqualTo []) exitWith
- {
- diag_log "DMS ERROR :: Calling DMS_ObjectKilled with empty array!";
- };
- private ["_markerZone"];
- private _killed = false;
- // private _lastDistanceCheckTime = _x getVariable ["DMS_LastAIDistanceCheck",time];
- // private _pos = getPosWorld _x;
- // private _spawnPos = _x getVariable ["DMS_AISpawnPos",0];
- if(alive radobject) then {
- diag_log ["OBJECT IS STILL alive"];
- }
- else
- {
- _killed = true;
- deleteMarker "markerZone";
- deleteMarker "markerIcon2";
- remoteExec ["ExileClient_system_map_initialize"];
- // deleteVehicle fxGas;
- diag_log ["OBJECT IS KILLED!!! WOO"];
- };
- _killed;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement