Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. /*
  2. DMS_fnc_TargetsKilled
  3. Created by eraser1
  4.  
  5. Usage:
  6. [
  7. _unit,
  8. _group,
  9. _object
  10. ] call DMS_fnc_TargetsKilled;
  11.  
  12. Will accept non-array argument of group, unit, or object.
  13. */
  14.  
  15. if (_this isEqualTo []) exitWith
  16. {
  17. diag_log "DMS ERROR :: Calling DMS_ObjectKilled with empty array!";
  18. };
  19. private ["_markerZone"];
  20. private _killed = false;
  21.  
  22. // private _lastDistanceCheckTime = _x getVariable ["DMS_LastAIDistanceCheck",time];
  23. // private _pos = getPosWorld _x;
  24. // private _spawnPos = _x getVariable ["DMS_AISpawnPos",0];
  25.  
  26. if(alive radobject) then {
  27.  
  28. diag_log ["OBJECT IS STILL alive"];
  29. }
  30.  
  31. else
  32. {
  33. _killed = true;
  34. deleteMarker "markerZone";
  35. deleteMarker "markerIcon2";
  36. remoteExec ["ExileClient_system_map_initialize"];
  37. // deleteVehicle fxGas;
  38. diag_log ["OBJECT IS KILLED!!! WOO"];
  39. };
  40.  
  41.  
  42.  
  43. _killed;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement