Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1.  
  2. //Init UPSMON script
  3. call compile preprocessFileLineNumbers "scripts\Init_UPSMON.sqf";
  4.  
  5. _nearesthouses = getMarkerPos "centerpos_mrk" nearObjects ["House",50];
  6. _houseList = [];
  7. {
  8. for "_i" from 0 to 20 do {
  9. if ( [(_x buildingPos _i), [0,0,0]] call BIS_fnc_arrayCompare ) exitWith {
  10. if (_i > 0) then {
  11. _houseList set [count _houseList, [_x, _i]];
  12. };
  13. };
  14. };
  15. }forEach _nearesthouses;
  16.  
  17. _randomHouse = _houseList select (floor (random (count _houseList)));
  18. _housePos = (_randomHouse select 0) buildingPos (floor (random (_randomHouse select 1)));
  19. _marker = createMarker ["hostage_mrk", _housePos];
  20. _marker setMarkerType "mil_join";
  21. _marker setMarkerColor "ColorRed";
  22. _marker setMarkerText " Hostage";
  23. _marker setMarkerSize [1,1];
  24.  
  25. _hostagepos = [_randomHouse] call BIS_fnc_buildingPositions;
  26. _hostagepos = _hostagepos call BIS_fnc_selectRandom;
  27. hostage setpos (_hostagepos "hostage_mrk");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement