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

Transporting troops - help

Recommended Posts

Here's what I want to do:

Create squad and vehicle with crew, then move this squad (one group) into cargo of vehicle (which is in own group).

This vehicle'll move to given position, drop out the squad and leave. I can do it in editor, but I need to do it in script. Here's my try:

//_grp = squad
//_grp2 = vehicle crew

_wp1 = _grp addWaypoint [_target,0];
_wp1 setWaypointType "GETOUT";

_wp2 = _grp2 addWaypoint [_target,0];
_wp2 setWaypointType "TR UNLOAD";

_wp2 synchronizeWaypoint [_wp1];

_wp3 = _grp2 addWaypoint [_spawn,0];
_wp3 setWaypointType "MOVE";

Result is, that vehicle move to the position and do nothing. I tried editing some waypoint options, but with same result.

So I created trigger on the desired position, which simply apply dogetout on every soldier in squad. That worked, but once they get out, they turn around and get back to the vehicle! Help! :(

Share this post


Link to post
Share on other sites

Sounds like you need to actually unassign each unit from the vehicle instead of just telling them to get out.

Share this post


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

×