Home   Help Search Login Register  

Author Topic: get pos of waypoint  (Read 600 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
get pos of waypoint
« on: 01 Jun 2005, 09:55:52 »
im making a script wich should stop mt units fleing but i ran into a problem how do i get the squad to move to the next wayppoint with a script would it be this
leader player move getpos ########
where as the ## are the numbers of the waypoint but how would i find the correct numbers of the waypoint ?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:get pos of waypoint
« Reply #1 on: 01 Jun 2005, 10:06:24 »
Something like

leader grp1 allowFleeing 0;  leader grp1 doFollow leader grp1

should make him go to his next waypoint.   getWPPos will work if you know what the next waypoint is.     IIRC correctly there is no direct way of telling which waypoint is "active", although if its really important you could do it with variables.
Plenty of reviewed ArmA missions for you to play

Offline 456820

  • Contributing Member
  • **
Re:get pos of waypoint
« Reply #2 on: 01 Jun 2005, 10:08:17 »
i was planning on using
? unitready leader player ; goto "exit"
do follow ? never thought of that.
ill have a go with it

Offline 456820

  • Contributing Member
  • **
Re:get pos of waypoint
« Reply #3 on: 01 Jun 2005, 10:21:10 »
thanks alot it seems to be working fine.
solved.