Since the leaveVehicle function was changed in Arma 3, there is no other way to force a pilot to eject from an flying helicopter than calling 'player action ["Eject",vehicle player]', with the player as pilot in this example (Interestingly enough, the Eject function will work just fine if the pilot is not civilian). However, this brings up an error dialog saying 'Bad vehicle type ParachuteC'. I suppose the Arma 3 Dev Team should consider updating the function since it seems to be still trying to spawn the pilot with an ParachuteC.
Description
Description
Details
Details
- Legacy ID
- 3397005937
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
Spawn a civilian and a littlebird in the editor, put the following code in the init of the heli : this addAction ["Eject","player action ['Eject',vehicle player]"];
Then just get in it, fly it to about 100m, then hit the eject option.