Jump to content

Recommended Posts

Hello, i have an issue

i use this code..

Embark:

{ _x assignAsCargo heli; [_x] orderGetIn true;} forEach units grp5; - the code Works

============

Disembark:

_waypoint0 = grp4 addwaypoint[getmarkerpos"m1",0];
_waypoint0 setwaypointtype"TR UNLOAD";
_waypoint0 setWaypointSpeed "FULL";

It work, troops disembark but they will not embark again... the assignascargo will not work anymore.. Troops not answer to the command..

I tried assign in a new helicopter and no work..

i tried {unassignVehicle _x} forEach units grp5; no work..

 

Any clue why?

Share this post


Link to post
Share on other sites

Grp5 is a fireteam (cargo troops)

Grp4 heli crew - wp tr unload, heli move to the wp and desembark cargo

Share this post


Link to post
Share on other sites
On 1/12/2024 at 2:34 AM, Junior Prado said:

{ _x assignAsCargo heli; [_x] orderGetIn true;} forEach units grp5; - the code Works

============

the assignascargo will not work anymore.. Troops not answer to the command..

I tried assign in a new helicopter and no work..

i tried {unassignVehicle _x} forEach units grp5; no work..

 

 

Could you elaborate how/where you script all the stuff?

Share this post


Link to post
Share on other sites

First trigger: Blufor present

on action: { _x assignAsCargo heli; [_x] orderGetIn true;} forEach units grp5;

this code make the troops embark

 

Second trigger:

Condition:

_aliveUnits = (units (grp5)) select {alive _x}; ({_x in heli} count _aliveUnits) == (count _aliveUnits);

 

Action:

_waypoint0 = grp4 addwaypoint[getmarkerpos"m1",0];
_waypoint0 setwaypointtype"TR UNLOAD";
_waypoint0 setWaypointSpeed "FULL";

 

The helicopter "heli" will wait the grp5 embark then will move to the marker m1 and TR UNLOAD.. the troops disembark.

After this, i can use an waypoint for move the grp5 and it work.. but the assignascargo / ordergetin will not work anymore... i can't embark the troops again..

 

Share this post


Link to post
Share on other sites

Looks this code working:

grp5 addvehicle heli;

_waypoint1 = grp5 addwaypoint[getmarkerpos"m1",0];
_waypoint1 setwaypointtype"GETIN";
_waypoint1 setWaypointSpeed "FULL";

 

Thx for help

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

×