Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- if !(_x getVariable ["ocap_isInitialised", false]) then {
- _ammoType = typeOf _x;
- _class = _ammoType call _getClass;
- if ((_class isEqualTo "unknown") || (_ammoType in ocap_excludeFromRecord)) exitWith {
- LOG(ARR2("WARNING: vehicle is defined as 'unknown' or exclude:", _ammoType));
- _x setVariable ["ocap_isInitialised", true];
- _x setVariable ["ocap_exclude", true];
- };
- _x setVariable ["ocap_id", _id];
- [":NEW:VEH:", [
- ocap_captureFrameNo, //1
- _id, //2
- _class, //3
- _ammoType //4
- ]] call ocap_fnc_extension;
- _x spawn ocap_fnc_addEventHandlers;
- _id = _id + 1;
- _x setVariable ["ocap_isInitialised", true];
- };
- if !(_x getVariable ["ocap_exclude", false]) then {
- private _crew = [];
- _pos = getPosATL _x;
- _pos set [2, round(_pos select 2)];
- [":UPDATE:VEH:", [
- (_x getVariable "ocap_id"), //1
- _pos, //2
- round getDir _x, //3
- BOOL(alive _x), //4
- _crew //5
- ]] call ocap_fnc_extension;
- };
- false
- } count allMines;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement