Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- _mineLoc = getPosASL _x;
- _closestMines = nearestLocations [_mineLoc, ["Invisible"], 1];
- if (count _closestMines < 1) then {
- _ammoType = typeOf _x;
- _kostil = createlocation ["Invisible", _mineLoc,1,1];
- if !(_kostil getVariable ["ocap_isInitialised", false]) then {
- _kostil setVariable ["ocap_id", _id];
- private _eventData = [ocap_captureFrameNo,_id, "placedMine", _mineLoc, _ammoType];
- _eventData = [
- ocap_captureFrameNo,
- "placedMine",
- _id,
- _mineLoc,
- _AmmoType
- ];
- [":EVENT:", _eventData] call ocap_fnc_extension;
- _id = _id + 1;
- _kostil setVariable ["ocap_isInitialised", true];
- };
- };
- false
- } count allMines;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement