Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Init UPSMON script
- call compile preprocessFileLineNumbers "scripts\Init_UPSMON.sqf";
- _nearesthouses = getMarkerPos "centerpos_mrk" nearObjects ["House",50];
- _houseList = [];
- {
- for "_i" from 0 to 20 do {
- if ( [(_x buildingPos _i), [0,0,0]] call BIS_fnc_arrayCompare ) exitWith {
- if (_i > 0) then {
- _houseList set [count _houseList, [_x, _i]];
- };
- };
- };
- }forEach _nearesthouses;
- _randomHouse = _houseList select (floor (random (count _houseList)));
- _housePos = (_randomHouse select 0) buildingPos (floor (random (_randomHouse select 1)));
- _marker = createMarker ["hostage_mrk", _housePos];
- _marker setMarkerType "mil_join";
- _marker setMarkerColor "ColorRed";
- _marker setMarkerText " Hostage";
- _marker setMarkerSize [1,1];
- _hostagepos = [_randomHouse] call BIS_fnc_buildingPositions;
- _hostagepos = _hostagepos call BIS_fnc_selectRandom;
- hostage setpos (_hostagepos "hostage_mrk");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement