Page 1 of 1

Setting waypoints?

Posted: Fri Aug 31, 2018 3:27 pm
by Gunner98
Hay guys

Trying to reset a units course. Situation is that at a trigger I reassign units on a non player side. The problem is that they keep on their plotted course until the end then do a recalculation and head to their new assigned mission area.

So I thought that if I used SetUinit I could assign a new course, when they go to the end of that they would recalculate and head off in the right direction.


Problem is that I cannot figure out the syntax for how to do that:


ScenEdit_SetUnit({guid='50dbf251-abd0-4561-9329-f0840149cdec', course:({waypoint= latitude='58.1923135808896', longitude='10.229358006151'})})


Is this the right way of doing what I'm trying to do? How should I format the command. There are only three units involved so I don't need anything too complex.


Thanks.


B

RE: Setting waypoints?

Posted: Fri Aug 31, 2018 4:07 pm
by Whicker
I *think* you can set course to {} and then the waypoints will be gone and it should move to its mission area.

RE: Setting waypoints?

Posted: Fri Aug 31, 2018 4:42 pm
by Gunner98
Thank you - that works.

Cheers

B