Jump to content
Sign in to follow this  
Docattak

Move To Next Waypoint From sqf file

Recommended Posts

I have a group _grp

It has 2 waypoints - the first is a "HOLD", the second is a "MOVE"

This has been set up via the Editor (and NOT the sqf script!)

The group gets into "Hold" mode and I want it to stay there until various things have happened (controlled by my sqf file).

I want code for inclusion in my sqf file that will make my group perform the "MOVE" waypoint.

PLEASE don't suggest triggers etc. - I know how to do that - I need code for the sqf file.

I've tried

_grp setCurrentWaypoint [_grp,1]

passing _grp as a parameter - it didn't work :(

Thanks in advance :)

Share this post


Link to post
Share on other sites

_grp setCurrentWaypoint [_grp,1]  

try changing it to

_grp setCurrentWaypoint [_grp,2];

you can also delete it.

deleteWaypoint [_grp,(currentWaypoint _grp)];

or change it from hold to move

[_grp,(currentWaypoint _grp)] setWaypointType "MOVE";

Share this post


Link to post
Share on other sites
I have a group _grp

It has 2 waypoints - the first is a "HOLD", the second is a "MOVE"

This has been set up via the Editor (and NOT the sqf script!)

You named your group with a local variable in the editor? I don't think that's even possible.

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  

×