BIS fnc aircraftCatapultLaunch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Some wiki formatting)
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|arg= local


|1.00|= Game version
|gr1= Aircraft Carrier
____________________________________________________________________________________________


| <pre>/*
|descr= Accelerates an aircraft off the aircraft carrier. For this to work the aircraft must be properly configured in config. See [[Arma 3: Aircraft Systems]] for information about needed config changes.
Author: Bravo Zero One development
- John_Spartan & Jiri Wainar


Description:
|s1= [aircraft, direction] call [[BIS_fnc_aircraftCatapultLaunch]]
- On demand function to invoke acceleration of aircraft (vehicle).


Exucution:
|p1= aircraft: [[Object]] - the aircraft that should be launched
- Call the function via code/script


[_plane] call BIS_fnc_AircraftCatapultLaunch;
|p2= direction: [[Number]] - (optional, default <sqf inline>direction _aircraft</sqf>) direction to launch the aircraft off to


Requirments:
|r1= [[Nothing]]
- Compatible aircraft must have a config definition for all sub-systems that will be invoked by this function


example of cfgVehicles subclass definitions;
|x1= <sqf>[_plane] call BIS_fnc_aircraftCatapultLaunch;</sqf>
 
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
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_AircraftCatapultLaunch]]; --> |SYNTAX=
|p1= |PARAMETER1=
 
| |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |SEEALSO=


|seealso= [[BIS_fnc_aircraftTailhook]]
}}
}}
<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:Functions|{{uc:AircraftCatapultLaunch}}]]
[[Category:Function Group: AircraftCarrier|{{uc:AircraftCatapultLaunch}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:AircraftCatapultLaunch}}]]

Latest revision as of 16:50, 27 July 2022

Hover & click on the images for description

Description

Description:
Accelerates an aircraft off the aircraft carrier. For this to work the aircraft must be properly configured in config. See Arma 3: Aircraft Systems for information about needed config changes.
Execution:
call
Groups:
Aircraft Carrier

Syntax

Syntax:
[aircraft, direction] call BIS_fnc_aircraftCatapultLaunch
Parameters:
aircraft: Object - the aircraft that should be launched
direction: Number - (optional, default direction _aircraft) direction to launch the aircraft off to
Return Value:
Nothing

Examples

Example 1:
[_plane] call BIS_fnc_aircraftCatapultLaunch;

Additional Information

See also:
BIS_fnc_aircraftTailhook

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