Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
chacne

waypoints using trigger commands, help ?

Recommended Posts

Hi , I have a group moving to a location on a radio call using {_x domove getpos player} foreach units group1 which is fine, BUT when they get there I would like them to gaurd that area and not just all stand there

so how can i set the group to gaurd once there, i was thinking something along the lines of

condition (group1 distance player) <100

on Act group1 setwaypointtype "GAURD";

or

condition (group1 distance player) <100

on Act group1 setwaypointtype "SAD";

you get the idea, just to get them to do something other than stand there when the reach the player location

obvioulsly the talented amoung you will know right away that this doesnt work, I have played with different combinations of this code, but am having no luck,

I can not use the obvious solution of waypoints because the players location could be in such a varied location, hence the domove getpos player using triggers

any help would be great thanks p.s trying to avoid using a script so . .if it can be done how i am trying to do it then great

Share this post


Link to post
Share on other sites

Ditch the trigger and instead of your doMove stuff use this in your radio call:

group1wp1 = group1 addWaypoint [getPos player, 0]; [group1, 1] setWaypointType "SAD";

After they have searched the 50m or so around the player though, they'll just stand around of course.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×