Jump to content
Sign in to follow this  
gopherman

Radio, waypoints, bringing a group to my location..

Recommended Posts

Ok, radio Alpha is set up to create a waypoint at my location and bring the group to it, this all works fine.

But the radio is set to repeatedly, because I want my support to follow up as I clear the area ahead. It only works once though.

while {count waypoints MSV > 0} do {deletewaypoint (waypoints MSV select 0)};

I have this code in in front of this code

MSV = MSV addWaypoint [(getpos player1), 0]; [MSV, 0] setWaypointType "move"

in the On Activation field of the radio.

Any help as to why this works only once?

Share this post


Link to post
Share on other sites

If you want them to follow you, why not just have them join your group?

Also, waypoint 0 is a unit's initial position, not its first waypoint. I realize that this is counter-intuitive because waypoint 0 is the name of the first waypoint in the editor, but this is how Bohemia decided to do it. You have to add one to each waypoint number in the editor when translating over to scripting.

Share this post


Link to post
Share on other sites

My group is full and so I want to have a better element of control over the vehicle packets following up.

Could you spell it out for me in plain English (or code!!) what I need to do to get that working? Thanks :)

Share this post


Link to post
Share on other sites

radioalpha set to repeat.

on act: nul=[player1] execVM "move.sqf"

move.sqf


_unit = _this select 0;

_wp1 = MSV addwaypoint [position _unit, 0];
_wp1 setwaypointtype "MOVE";
_wp1 setWaypointSpeed "FULL";
_wp1 setWaypointBehaviour "AWARE";
_wp1 setWaypointCombatMode "YELLOW";
_wp1 setWaypointStatements  ["true",""];
MSV setCurrentWaypoint _wp1

if (true) exitwith {};

Edited by cobra4v320

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  

×