BIS fnc aircraftCatapultLaunch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1= Aircraft Carrier |GROUP1=
|gr1= Aircraft Carrier


| <pre>/*
| <pre>/*
Line 49: Line 49:
*/
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small>


| <!-- [] call [[BIS_fnc_AircraftCatapultLaunch]]; --> |SYNTAX=
| <!-- [] call [[BIS_fnc_AircraftCatapultLaunch]]; -->
|p1= |PARAMETER1=
|p1=


| |RETURNVALUE=
|


|x1= <code></code> |EXAMPLE1=
|x1= <code></code>


| |SEEALSO=
|


}}
}}

Revision as of 22:06, 17 January 2021

Hover & click on the images for description

Description

Description:
/*
	Author: Bravo Zero One development
	- John_Spartan & Jiri Wainar

	Description:
	- On demand function to invoke acceleration of aircraft (vehicle).

	Exucution:
	- Call the function via code/script

		[_plane] call BIS_fnc_AircraftCatapultLaunch;

	Requirments:
	- Compatible aircraft must have a config definition for all sub-systems that will be invoked by this function

		example of cfgVehicles subclass definitions;

		tailHook = true;										Allow to land on carrier
		class CarrierOpsCompatability
		{
			ArrestHookAnimationList[] = {"tailhook", "tailhook_door_l", "tailhook_door_r"};		List of animation played to animate tailhook. Defined in model.cfg (type user)
			ArrestHookAnimationStates[] = {0,0.53,1};						Tailhook animation states when down, hooked, up.
			ArrestHookMemoryPoint = "pos_tailhook";							TailHook memory point in plane model.p3d
			ArrestMaxAllowedSpeed = 275;								Max speed km/h allowed for successful landing
			ArrestSlowDownStep = 0.8;								Simulation step for calcualting how smooth plane will be slowed down.
			ArrestVelocityReduction = -12;								Speed reduced per simulation step
			LaunchVelocity = 300;									Speed required for take off
			LaunchVelocityIncrease = 10;								Speed increased per simulation step
			LaunchAccelerationStep = 0.001;								Simulation step for calcualting how smooth plane will launched from carrier catapult.
			LaunchBarMemoryPoint = "pos_gear_f_hook";						LaunchBar memory point
		};

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


	Returns: nothing
	Result: Aircraft will be accelerated to required speed

*/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Aircraft Carrier

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

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


Bottom Section