BIS fnc aircraftFoldingWings: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |p1= |r1= |x1= }}" to " |p1= |r1= |x1= |seealso= }}")
m (Text replacement - "bis_fnc_" to "BIS_fnc_")
Line 17: Line 17:
class Eventhandlers: Eventhandlers
class Eventhandlers: Eventhandlers
{
{
engine = "_this call bis_fnc_aircraftFoldingWings";
engine = "_this call BIS_fnc_aircraftFoldingWings";
gear = "_this call bis_fnc_aircraftFoldingWings";
gear = "_this call BIS_fnc_aircraftFoldingWings";
};
};



Revision as of 18:25, 20 June 2021

Hover & click on the images for description

Description

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

	Description:
	- This function is designed to prevent take off with folded wings on the Jets DLC aircraft that have such useraction/function enabled.

	Exucution:
	- Call the function via int EH on each aircrfat config
		class Eventhandlers: Eventhandlers
		{
			engine = "_this call BIS_fnc_aircraftFoldingWings";
			gear = "_this call BIS_fnc_aircraftFoldingWings";
		};

	Requirments:
	- Compatible aircrfat must have a config definition for all subsytems that will be invoked by this function

		example of cfgVehicles subclass definitions;
		class AircraftAutomatedSystems
		{
			wingStateControl = 1;																				//enable automated wing state control to prevent player to take off with folded wings
			wingFoldAnimations[] = {"wing_fold_l","wing_fold_r","wing_fold_cover_l", "wing_fold_cover_r"};		//foldable wing animation list
			wingStateFolded = 1;																				//animation state when folded
			wingStateUnFolded = 0;																				//animation state when un-folded
			wingAutoUnFoldSpeed = 40;																			//speed treshold when triger this feature, and unfold wings for player

		};

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

	Returns: nothing
	Result: Aircrfat should not be able to take off/ fly with wings folded

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

Syntax

Syntax:
[] call BIS_fnc_aircraftFoldingWings
Return Value:
Return value needed

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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