Advertisement
secondcoming

Untitled

Apr 18th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.42 KB | None | 0 0
  1.             _spawnPoints = nearestObjects [(getPosATL _playerObject), "Land_HelipadSquare_F",200];
  2.            
  3.             _okToSpawn = false;
  4.             {
  5.                 _spawnPoint = _x;
  6.                 _position = _spawnPoint findEmptyPosition [0,0,_vehicleClass];
  7.                 if(!isNull_position) exitWith { _okToSpawn = true; };
  8.             }forEach _spawnPoints;
  9.            
  10.             if ( !_okToSpawn ) then
  11.             {
  12.                 _position = (getPos _playerObject) findEmptyPosition [50, 300, _vehicleClass];
  13.             };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement