Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. _validTypes = ["Land_i_House_Small_01_V1_F", "Land_i_House_Small_01_V2_F", "Land_i_House_Small_01_V3_F", "Land_i_House_Small_02_V1_F", "Land_i_House_Small_02_V2_F", "Land_i_House_Small_02_V3_F", "Land_i_House_Big_01_V1_F", "Land_i_House_Big_01_V2_F", "Land_i_House_Big_01_V3_F", "Land_i_House_Big_02_V1_F", "Land_i_House_Big_02_V2_F", "Land_i_House_Big_02_V3_F"];
  2.  
  3. _PHouseObjs = nearestObjects [pyrgos, _validTypes, 600];
  4. _AHouseObjs = nearestObjects [athira, _validTypes, 600];
  5. _KHouseObjs = nearestObjects [kavala, _validTypes, 600];
  6.  
  7. _houseObjs = _PHouseObjs + _AHouseObjs + _KHouseObjs;
  8.  
  9. {
  10. _houseNum = format["House%1", _forEachIndex];
  11. missionNamespace setVariable [_houseNum, _x];
  12. _x setVehicleVarName _houseNum; //map ref is ran in code without this
  13.  
  14. _type = typeOf _x;
  15. if (_type in _validTypes) then {
  16. _x call _addHouseAction;
  17. };
  18. } forEach _houseObjs;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement