Jump to content
major woody

waypointAttachVehicle - Group Follow Group

Recommended Posts

By inspiration from theese two topics I'm trying go get one group to follow another.

https://community.bistudio.com/wiki/waypointAttachVehicle

https://forums.bohemia.net/forums/topic/171949-any-success-with-waypointattachvehicleobject/

 

My code:

_grp1 = leader grp00;
_grp2 = leader s1;

_wyp = _grp1 addwaypoint [getpos _grp1, 0];
_wyp waypointAttachVehicle _grp2;
_wyp setWaypointType "MOVE";

_grp1 = leader grp00;
_grp2 = leader s1;

_wyp = _grp1 addwaypoint [getpos _grp1, 0];
_wyp waypointAttachVehicle (vehicle _grp2);
_wyp setWaypointType "MOVE";

Somehow it won't attach the waypoint. Maybe it's because grp00 is not in a vehicle... - I need the script to support multiple senarious... eg.

 

grp00 - s1 both in vehicles

grp00 - s1 both on the ground

grp00 - s1 one group on the ground, one group in vehicle and vice versa...

 

What am I missing...? - tnx in advance... 🙂

Share this post


Link to post
Share on other sites
4 hours ago, major woody said:

_wyp = _grp1 addwaypoint [getpos _grp1, 0];

_grp1 is a unit( leader grp00 ) so waypoint creation will fail, you can only add waypoints to groups.

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

×