{"name":"BIS_fnc_planeAiEject","title":"BIS fnc planeAiEject","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_planeAiEject","revid":376187,"updated":"2025-09-13T15:54:56Z","groups":["Aircraft Functionality"],"status":"ok","games":{"arma3":"1.70"},"since":"arma3 1.70","arma3_since":"1.70","description":"- This function is designed as part of set of functions to implement semi-authenthic ejection system on fixed wing aircrfat that have such functionality enabled/configured.\n- AI behaviour handler.","syntaxes":[{"syntax":"plane call BIS_fnc_planeAiEject","params":[{"name":"plane","type":"Object","description":"living vehicle with a pilot and with ejection systems set up in its config","type_expr":"Object"}],"returns":{"type":"Nothing if plane was invalid or no ejection was needed, otherwise Script Handle","type_expr":"Nothing","description":"script handle of spawned BIS_fnc_planeEjection"}}],"examples":[{"code":["_myPlane call BIS_fnc_planeAiEject;"]}],"see_also":["BIS_fnc_planeEjection","BIS_fnc_planeEjectionFX","BIS_fnc_ejectionSeatRelease"],"docblock":{"text":"Author: Bravo Zero One development\n- John_Spartan\n\nDescription:\n- This function is designed as part of set of functions to implement semi-authenthic ejection system on fixed wing aircrfat that have such functionality enabled/configured.\n- AI behaviour handler.\n\nExucution:\n- Call the function via attached EH to the aircrfat itself.\n\n    Example:\n    class Eventhandlers : Eventhandlers\n    {\n        Hit = \"_this call BIS_fnc_planeAiEject\";\n    };\n\nRequirments:\n- Compatible aircrfat must have a config definition for all subsytems that will be invoked by ejection system (see BIS_fnc_PlaneEjection).\n\nParameter(s):\n    _this select 0: mode (Scalar)\n    0: plane/object\n\nReturns: nothing\nResult: AI pilot will be forced to eject from aircrfat upon damage treshold reached. Semi-authenthic behaviour.","author":"Bravo Zero One development, John_Spartan"},"filled_from_docblock":["description"]}