Forum Jump :

Author Message

MofC  



Posts: 1
Rank:


Level: Member

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

 
#1 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, 762 days ago)


Author Message


Posts: 1484
Rank:


Level: Member

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

 
#2 Posted at 2015-11-12 12:32        
     
remove underscore from the group name or it will remain local and cannot be uses as easily outside of the script which waypoint statements are.

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