Jump to content
Sign in to follow this  
lucki

'easy' two-waypoint script not working...

Recommended Posts

Hi all,

I was copying/paste an easy two waypoints patrol script that works for Arma 2, but unable to use it on Arma 3....It calls out 4 units already present on the map. Some idea of the error?

_patrol1marker = createmarker ["patrol1marker", [14077.7,16410.6,0]];

_patrol1 = getmarker "patrol1marker";

_patrol2marker = createmarker ["patrol2marker", [14230.9,16410.1,0]];

_patrol2 = getmarker "patrol2marker";

[patrol1_1, patrol1_2, patrol1_3, patrol1_4] join grpnull;

thundergroup = createGroup WEST;

[patrol1_1, patrol1_2, patrol1_3, patrol1_4] join thundergroup;

thundergroup selectLeader patrol1_1;

_wp01 = thundergroup addWaypoint [_patrol1, 10];

_wp01 setWaypointType "MOVE";

_wp01 setWaypointSpeed "LIMITED";

_wp01 setWaypointBehaviour "CARELESS";

_wp01 setWaypointFormation "FILE";

_wp02 = thundergroup addWaypoint [_patrol2, 10];

_wp02 setWaypointType "MOVE";

_wp02 setWaypointSpeed "LIMITED";

_wp02 setWaypointBehaviour "CARELESS";

_wp02 setWaypointFormation "FILE";

exit;

Share this post


Link to post
Share on other sites

You don't need exit. That is obsolete for .sqf scripts. Use GetmarkerPos instead of GetMarker.

_patrol1 = [color="#FF0000"]GetMarkerPos[/color] "patrol1marker";

...

_patrol2 = [color="#FF0000"]GetMarkerPos[/color] "patrol2marker";

Edited by David77

Share this post


Link to post
Share on other sites

thanks for the quick answer David77, that was such an obvious mistake...

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  

×