Forum Jump :

Author Message

MofC  



Posts: 1
Rank:


Level: Member

Country: pl
Location:
Occupation:
Age:
In-game name:

 
#183907 Posted at 2015-11-11 16:04        
     
Hello

I've got problem with script in Arma 3. In 2D editor i have group that leader's name is Recon1 and air transport(UH-80) - plane1 .
And trigger that run script file. My problem is make waypoint get in for group to plane1.

My code:

_Alpha = group Recon1;

_wp = _Alpha AddWaypoint [plane1,0];
_wp setWaypointType "GETIN";
_wp setWaypointStatements ["true", "{_x assignAsCargo plane1} foreach units _Alpha;"];


But waypoint appears near helicopter. Group just move to that waypoint but doesn't get in. Please help.

EDIT:
Ok I fix this, now the code looks:

_Alpha = group Zwiad1;

{_x assignAsCargo plane} foreach units _Alpha;

units _Alpha ordergetin true;

_wp = _Alpha AddWaypoint [plane,3];
_wp setWaypointType "GETIN";

This post was edited by MofC (2015-11-11 17:46, ago)