Forum Jump :

Author Message


Posts: 77
Rank:


Level: Member

Country: us
Location: Washington State, USA
Occupation: high school
Age:
In-game name: Silv3rBack

 
#1 Posted at 2012-01-03 23:06        
     
Can someone tell me how to make an ai chopper pilot pick up ai units with out me having them to order them to board the chopper in gameplay? I need it for a mission where a bunch of choppers come in to extract units from one area and insert them into another area. Youtube tutorials didnt help me at all. Thanks.

Intel Core i7 2600k 4.1ghz
EVGA GTX 570 HD Superclocked
16gb 1600Mhz Kingston HyperX Ram
1TB HDD 7200Rpm 32mb Cache
Windows 7 64 bit

Author Message

palyarmerc  

I live inside the editor


Posts: 752
Rank:


Level: Member PFS

Country: 00
Location:
Occupation: *Retired*
Age:
In-game name: *Retired*

 
#2 Posted at 2012-01-09 08:36        
     
In your AI soldier leader init put heroes=group this
Have your helo called 'helo1'
script command would be

{_x assignAsCargo helo1} foreach units heroes;
{[_x] ordergetin true} foreach units heroes;
wp = heroes addwaypoint [helo1,5];
wp setwaypointType "GETIN";


It's worth noting that the Helo command differs slightly from the group of soldiers
Use of GET IN, GETIN, LOAD, UNLOAD, GET OUT, GETOUT can all be very fickle....

Getting Out / Unloading EXAMPLE

_wp = _H1Group addWaypoint [_land, 5];
_wp setWaypointStatements ["true", "H1helo land 'GET OUT';"];

_wp1 = _H1Group addWaypoint [_land, 25];
_wp1 setwaypointtype "UNLOAD";

Getting In / Loading EXAMPLE

_wp = _H1Group addWaypoint [_land, 5];
_wp setWaypointStatements ["true", "H1helo land 'LOAD';"];

_wp1 = _H1Group addWaypoint [_land, 25];
_wp1 setwaypointtype "GETIN";

This post was edited by palyarmerc (2012-01-09 09:03, 983 days ago)

....that's all folks....!

Advertisement


Author Message


Posts: 77
Rank:


Level: Member

Country: us
Location: Washington State, USA
Occupation: high school
Age:
In-game name: Silv3rBack

 
#3 Posted at 2012-01-09 22:44        
     
thank you, ill try it out tomorrow when my new rig gets in...Peace!

Intel Core i7 2600k 4.1ghz
EVGA GTX 570 HD Superclocked
16gb 1600Mhz Kingston HyperX Ram
1TB HDD 7200Rpm 32mb Cache
Windows 7 64 bit