OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Carroll on 31 May 2007, 12:56:47

Title: SOLVED: setWaypointScript
Post by: Carroll on 31 May 2007, 12:56:47
Hi i was wondering how to get a unit to complete a script before he moves onto next waypoint? At present he moves straight to next way point before script is complete. I do remember seeing a thread about setWaypointScript here somewhere but after an hour searching cant sem to find it?

any help would be greatful for,ty
Title: Re: setWaypointScript
Post by: bardosy on 31 May 2007, 13:17:27
put a last line in the script:
Quote
variablename = true

And then overwrite the condition of the WP: valiablename
Title: Re: setWaypointScript
Post by: Carroll on 31 May 2007, 14:34:49
Thanks bardosy, i've added the line you've recommended + added a ~1 second delay between each playMove.
Result has been relatively successful, though it will be good enough to look convincing, cheers.
Title: Re: setWaypointScript
Post by: Mr.Peanut on 31 May 2007, 17:36:49
You can also add in a new waypoint in between the other two and make it type Scripted. A scripted WPs must complete before the group moves to the waypoint following it. Check out this excellent thread (http://www.ofpec.com/forum/index.php?topic=13884) for details.