Jump to content
Sign in to follow this  
SRBuckey5266

[HELP] How do you spawn a helicopter with an AI flying it?

Recommended Posts

_heli = createVehicle ["UH60M_EP1", _pos, [], 0, "FLY"]; _heli setDir 180;
_ai = "CZ_Soldier_Pilot_EP1" createUnit [_pos, group player]; _ai assignAsDriver _heli; _ai moveInDriver _heli;

Any ideas? The vehicle and AI are created, however the AI spawns next to the player and the helicopter just crashes to the ground.

Share this post


Link to post
Share on other sites

I'm a fan of:

[getPos mySpawnPos, 180, "BMP3", EAST] call bis_fnc_spawnvehicle;

-Just so no one forgets: you need to put a Functions Module on the map for this function to work.

-If there is no enemy on the map, it will spawn as empty.

-Clarifying the above, you either need to use createCenter to create a side, or place a unit of the desired side on the map (probability0%), otherwise the vehicle spawns empty.

http://community.bistudio.com/wiki/BIS_fnc_spawnVehicle

http://community.bistudio.com/wiki/Category:ArmA_2:_Functions

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
Sign in to follow this  

×