Jump to content
Sign in to follow this  
Dragster

spawn heli in air

Recommended Posts

i use this script in a trigger to spawn a flying AH1Z

_veh = createVehicle ["AH1Z", getMarkerPos "mark1", [],0,"fly"];

it works and the helicopter spawn flying what im wondering what do i need to add for the chopper to join playergroup?

need help with second problem the helocopter crash after spawn ?

Edited by Dragster

Share this post


Link to post
Share on other sites

Erm, that would create a flying, but unmanned, helicopter which will quckly fall to the ground. Try using the function BIS_fnc_spawnVehicle to create a manned aircraft.

Place Functions module and spawn like this:

[[getPos player select 0, getPos player select 1, 50], getDir player, "AW159_Lynx_BAF", group player] call bis_fnc_spawnVehicle;

Edited by kylania

Share this post


Link to post
Share on other sites

GRP1 = createGroup west; veh = createVehicle ["AH1Z", getMarkerPos "hspawn", [],0,"fly"]; AH1Zpilot = grp1 createUnit ["USMC_Soldier_Pilot", [0,0,1], [], 0, "CAN_COLLIDE"]; AH1Zpilot moveInDriver veh; [veh] join player

ok found the solution for it incase anyone wants to know now it spawns in the air and dont crash and join player group

Edited by Dragster

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  

×