Jump to content
Sign in to follow this  
_qor

Spawn heli on the ground with BIS_fnc_spawnVehicle

Recommended Posts

Hey,

 

I want to spawn a Chinook with all crew inside, but using BIS_fnc_spawnVehicle spawns the Chinook like in the air with engineOn true and with some velocity.

Although the heli spawns on the ground, the Chinook acts like a rocket firing straight in the air.

 

I used setVelocity [0,0,0] and engineOn false, so at least the Chinook takes off smoothly. But I actually want it to stay on the ground with engine turned off.

 

Do I need to use createVehicle and add the crew or is there a better way?

Share this post


Link to post
Share on other sites

BIS_fnc_spawnVehicle will always spawn in aircraft and helicopters in flying mode:

_veh = createVehicle [_type, _pos, [], 0, "FLY"];

So you''ll probably want to use createVehicle, then follow it with BIS_fnc_spawnCrew, addVehicle and selectLeader.

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  

×