Advertisement
Marz1pan

Untitled

Nov 2nd, 2019
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.73 KB | None | 0 0
  1. {
  2.             _mineLoc = getPosASL _x;
  3.             _closestMines = nearestLocations [_mineLoc, ["Invisible"], 1];
  4.             if (count _closestMines < 1) then {
  5.                 _ammoType = typeOf _x;
  6.             _kostil = createlocation ["Invisible", _mineLoc,1,1];
  7.             if !(_kostil getVariable ["ocap_isInitialised", false]) then {
  8.                 _kostil setVariable ["ocap_id", _id];
  9.               private _eventData = [ocap_captureFrameNo,_id, "placedMine", _mineLoc, _ammoType];
  10.      _eventData = [
  11.               ocap_captureFrameNo,
  12.               "placedMine",
  13.               _id,
  14.               _mineLoc,
  15.               _AmmoType
  16.           ];
  17.             [":EVENT:", _eventData] call ocap_fnc_extension;
  18.                 _id = _id + 1;
  19.                 _kostil setVariable ["ocap_isInitialised", true];
  20.                 };
  21.             };
  22.             false
  23.         } count allMines;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement