Difference between revisions of "BIS fnc aircraftCatapultLaunch"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \|s1= <!-- ([^ ]+); --> \}\}" to " |s1= <!-- $1 --> |r1= |x1= |seealso= }} ") |
(formatting) |
||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
− | |version1= 1. | + | |version1= 1.68 |
|gr1= Aircraft Carrier | |gr1= Aircraft Carrier | ||
− | |descr= < | + | |descr= Accelerates an aircraft off the aircraft carrier. For this to work the aircraft must be properly configured in config. |
− | + | <syntaxhighlight lang="cpp"> | |
− | + | // Example of a CfgVehicles subclass definition | |
− | + | 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 | ||
+ | }; | ||
+ | </syntaxhighlight> | ||
− | + | |s1= [aircraft, direction] call [[BIS_fnc_aircraftCatapultLaunch]] | |
− | |||
− | + | |p1= aircraft: [[Object]] - the aircraft that should be launched | |
− | + | |p2= direction: [[Number]] - (optional, default {{ic|[[direction]] aircraft}}) direction to launch the aircraft off to | |
− | |||
− | + | |r1= [[Nothing]] | |
− | + | |x1= <code>[_plane] call BIS_fnc_AircraftCatapultLaunch;</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |seealso= [[BIS_fnc_aircraftTailhook]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} |
Revision as of 09:49, 13 August 2021
Description
- Description:
- Accelerates an aircraft off the aircraft carrier. For this to work the aircraft must be properly configured in config.
// Example of a CfgVehicles subclass definition 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 };
- 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