Advertisement
Guest User

Untitled

a guest
May 9th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. //Save waypoint data
  2. // [<unitGroup>] call jebus_fnc_saveWaypoints
  3.  
  4. params [
  5. "_newGroup"
  6. ,"_waypointList"
  7. ,"_debug"
  8. ];
  9.  
  10. if (!(_waypointList isEqualTo [])) then {
  11. if (_debug) then {systemChat "Applying waypoints."};
  12. for "_waypointIndex" from 1 to (count (_waypointList) - 1) do {
  13. _currentWaypoint = _waypointList select _waypointIndex;
  14.  
  15. _newWaypoint = _newGroup addWaypoint [(_currentWaypoint select 0), _waypointIndex];
  16.  
  17. _newWaypoint setwaypointBehaviour (_currentWaypoint select 1);
  18. _newWaypoint setwaypointCombatMode (_currentWaypoint select 2);
  19. _newWaypoint setwaypointCompletionRadius (_currentWaypoint select 3);
  20. _newWaypoint setwaypointFormation (_currentWaypoint select 4);
  21. _newWaypoint setwaypointScript (_currentWaypoint select 5);
  22. _newWaypoint setwaypointSpeed (_currentWaypoint select 6);
  23. _newWaypoint setwaypointStatements (_currentWaypoint select 7);
  24. _newWaypoint setwaypointTimeout (_currentWaypoint select 8);
  25. _newWaypoint setwaypointType (_currentWaypoint select 9);
  26.  
  27. _syncedTriggers = _currentWaypoint select 10;
  28. {
  29. _x synchronizeTrigger [_newWaypoint];
  30. } forEach _syncedTriggers;
  31. };
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement