Jump to content
Sign in to follow this  
colej_uk

Simple Q: Update waypoint to unit location?

Recommended Posts

Hi,

I'm new to editing, and what I want to do is basic, but I can't seem to get it to work- maybe I'm doing something wrong?

I just want a waypoint to update every 30 seconds or so to a unit's location (regardless of whether that unit has been spotted or not). The reason being I am making a map where one team has to hunt the other but the 'hunters' get the advantage of knowing the general position of the 'hunted' team marked as a waypoint.

So I've got a trigger which activates every 30 seconds, and a single waypoint for the 'hunters' group, so I assumed this would be a simple case of using the 'setWaypointPosition'/'setWPPos' command to change the position of the single waypoint. But for some reason I can't get this to work, the waypoint stays where it is. I also tried adding a new waypoint but this doesn't seem to work for me either.

[hunters, 1] setWaypointPosition [GetPos hunted, 100];

'hunters' and 'hunted' being the groups names. Am I missing something simple in that command which is making it not work? The waypoint just stays where it is when the trigger is activated.

Share this post


Link to post
Share on other sites

It seems you can't change the waypoint location for a group that has already started moving towards it. It might be possible to delete it and then recreate it in the new location.

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
Sign in to follow this  

×