Home   Help Search Login Register  

Author Topic: SOLVED: setWaypointScript  (Read 1405 times)

0 Members and 1 Guest are viewing this topic.

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
SOLVED: setWaypointScript
« 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
« Last Edit: 29 Jul 2007, 13:44:41 by Carroll »

Offline bardosy

  • Honoured Contributor
  • ***
  • campaign designer
    • CartooDiv
Re: setWaypointScript
« Reply #1 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
Fix bayonet!

Offline Carroll

  • Members
  • *
  • Mission Designer (MP-"well tryin to capiche"
Re: setWaypointScript
« Reply #2 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.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: setWaypointScript
« Reply #3 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 for details.
« Last Edit: 31 May 2007, 17:38:21 by Mr.Peanut »
urp!