Difference between revisions of "BIS fnc aircraftTailhook"

From Bohemia Interactive Community
Jump to navigation Jump to search
(username removed)
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Some wiki formatting)
 
(40 intermediate revisions by 4 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= Aircraft carrier arrest/recovery function for USS Freedom aircraft carrier. If the aircraft exceeds the speed defined in config a wire snap will be simulated.
Author: Bravo Zero One development
 
- John_Spartan
 
  
Description:
+
|s1= [aircraft] call [[BIS_fnc_aircraftTailhook]]
Aircrfat carrier arrest/recovery function for USS Freedom aircraft carrier
 
  
Exucution:
+
|p1= aircraft: [[Object]] - the aircraft to arrest/recover
Call the function via user-action or script for any compatible fixed wing aircrfat
 
[this] spawn bis_fnc_aircraftTailhook;
 
  
Requirments:
+
|r1= [[Nothing]]
- Compatible aircrfat must have an animation for arrest/tail hook selection defined in CfgCehicles and modeled in 3D model (model.cfg)
 
- Compatible aircrfat must have a memory point for cable attach position
 
  
example of cfgVehicles subclass definitions;
+
|x1= <sqf>[_aircraft] call BIS_fnc_aircraftTailhook;</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
 
 
 
};
 
 
 
Parameter(s):
 
_this select 0: mode (Scalar)
 
0: plane/object
 
 
 
 
 
Returns: nothing
 
Result: Aircrfat after touch down on carrier deck will be dynamicly slowed down. If speed willbe above 275 km/h (suggested and configured on vanilla assets) wire snap will be simulated.
 
Aircrfat will come to full stop in 155-175 m
 
 
 
*/
 
 
 
#define EXIT_CODE {_plane animate [_x,_planeHookUpAnimState];} forEach _planeHookAnimList;_plane SetUserMFDvalue [0,0];
 
 
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
 
____________________________________________________________________________________________
 
 
 
| <!-- [] call [[BIS_fnc_AircraftTailhook]]; --> |= Syntax
 
|p1= |= Parameter 1
 
 
 
| |= Return value
 
____________________________________________________________________________________________
 
 
 
|x1= <code></code> |=
 
____________________________________________________________________________________________
 
 
 
| |= See also
 
  
 +
|seealso= [[BIS_fnc_aircraftCatapultLaunch]]
 
}}
 
}}
 
<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: CarrierOps|{{uc:AircraftTailhook}}]]
 
[[Category:Functions|{{uc:AircraftTailhook}}]]
 
[[Category:{{Name|arma3}}: Functions|{{uc:AircraftTailhook}}]]
 

Latest revision as of 21:53, 13 May 2022

Hover & click on the images for description

Description

Description:
Aircraft carrier arrest/recovery function for USS Freedom aircraft carrier. If the aircraft exceeds the speed defined in config a wire snap will be simulated.
Execution:
call
Groups:
Aircraft Carrier

Syntax

Syntax:
[aircraft] call BIS_fnc_aircraftTailhook
Parameters:
aircraft: Object - the aircraft to arrest/recover
Return Value:
Nothing

Examples

Example 1:

Additional Information

See also:
BIS_fnc_aircraftCatapultLaunch

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