Jump to content

Recommended Posts

Hi guys!

 

I've placed down a unit in the editor and gave it some move waypoints. Going to activate first with trigger.

 

Is there a way to give, lets say five pre-defined locations for second waypoint and randomly choose one of those?

 

Also, I'm going to add some playMoveNow code to that waypoint...

 

 

Thanks.

Share this post


Link to post
Share on other sites

Well if you want random waypoint position you could use list of markers

 

_wppos = getMarkerPos (selectRandom ["wp1","wp2","wp3"]);

 

where wp1 etc are markers placed in the editor. And _wppos variable is the random pos

  • Thanks 1

Share this post


Link to post
Share on other sites
12 minutes ago, gc8 said:

 


_wppos = getMarkerPos (selectRandom ["wp1","wp2","wp3"]);

 

 

Thank you, sir.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×