BIS fnc planeAiEject: Difference between revisions

From Bohemia Interactive Community
m (rollback)
(Added more information based on examining the code)
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Aircraft Functionality


|1.00|= Game version
|descr= <pre>/*
____________________________________________________________________________________________
 
| <pre>/*
Author: Bravo Zero One development
Author: Bravo Zero One development
- John_Spartan
- John_Spartan
Line 20: Line 18:


Example:
Example:
class Eventhandlers: Eventhandlers
class Eventhandlers : Eventhandlers
{
{
Hit = "_this call BIS_fnc_planeAiEject";
Hit = "_this call BIS_fnc_planeAiEject";
Line 31: Line 29:
_this select 0: mode (Scalar)
_this select 0: mode (Scalar)
0: plane/object
0: plane/object


Returns: nothing
Returns: nothing
Result: AI pilot will be forced to eject from aircrfat upon damage treshold reached. Semi-authenthic behaviour.
Result: AI pilot will be forced to eject from aircrfat upon damage treshold reached. Semi-authenthic behaviour.


*/
*/</pre>


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
{{Wiki|placeholder}}
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_PlaneAiEject]]; --> |= Syntax
|s1= plane call [[BIS_fnc_planeAiEject]]
|p1= |= Parameter 1


| |= Return value
|p1= plane: [[Object]] - living vehicle with a pilot and with ejection systems set up in its config
____________________________________________________________________________________________


|x1= <code></code> |=
|r1= [[Nothing]] if plane was invalid or no ejection was needed, otherwise [[Script Handle]] - script handle of spawned [[BIS_fnc_planeEjection]]
____________________________________________________________________________________________


| |= See also
|x1= <sqf>_myPlane call BIS_fnc_planeAiEject;</sqf>


|seealso= [[BIS_fnc_planeEjection]] [[BIS_fnc_planeEjectionFX]] [[BIS_fnc_ejectionSeatRelease]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Ejection|{{uc:PlaneAiEject}}]]
[[Category:Functions|{{uc:PlaneAiEject}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:PlaneAiEject}}]]

Latest revision as of 04:30, 13 September 2025

Hover & click on the images for description

Description

Description:
/*
	Author: Bravo Zero One development
	- John_Spartan

	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.
	- AI behaviour handler.

	Exucution:
	- Call the function via attached EH to the aircrfat itself.

		Example:
		class Eventhandlers : Eventhandlers
		{
			Hit = "_this call BIS_fnc_planeAiEject";
		};

	Requirments:
	- Compatible aircrfat must have a config definition for all subsytems that will be invoked by ejection system (see BIS_fnc_PlaneEjection).

	Parameter(s):
		_this select 0: mode (Scalar)
		0: plane/object

	Returns: nothing
	Result: AI pilot will be forced to eject from aircrfat upon damage treshold reached. Semi-authenthic behaviour.

*/
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
Execution:
call
Groups:
Aircraft Functionality

Syntax

Syntax:
plane call BIS_fnc_planeAiEject
Parameters:
plane: Object - living vehicle with a pilot and with ejection systems set up in its config
Return Value:
Nothing if plane was invalid or no ejection was needed, otherwise Script Handle - script handle of spawned BIS_fnc_planeEjection

Examples

Example 1:
_myPlane call BIS_fnc_planeAiEject;

Additional Information

See also:
BIS_fnc_planeEjection BIS_fnc_planeEjectionFX BIS_fnc_ejectionSeatRelease

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note