BIS fnc aircraftWingStateCheck: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|x1= <code></code> |= " to "|x1= <code></code> |EXAMPLE1=") |
Lou Montana (talk | contribs) m (Text replacement - " ( *class [a-zA-Z0-9_]+): *([a-zA-Z0-9_]+ *) " to " $1 : $2 ") |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | |||
|game1= arma3 | |||
|version1= 1.00 | |||
| | |gr1= Aircraft Functionality | ||
| | |descr= <pre>/* | ||
Author: Bravo Zero One development | Author: Bravo Zero One development | ||
- John_Spartan | - John_Spartan | ||
Line 17: | Line 15: | ||
Exucution: | Exucution: | ||
- Call the function via int EH on each aircrfat config | - Call the function via int EH on each aircrfat config | ||
class Eventhandlers: Eventhandlers | class Eventhandlers : Eventhandlers | ||
{ | { | ||
init = "_this call BIS_fnc_AircraftSystemsInit"; | init = "_this call BIS_fnc_AircraftSystemsInit"; | ||
Line 39: | Line 37: | ||
_this select 0: mode (Scalar) | _this select 0: mode (Scalar) | ||
0: plane/object | 0: plane/object | ||
Returns: nothing | Returns: nothing | ||
Result: Aircrfat should not be able to take off/ fly with wings folded | Result: Aircrfat should not be able to take off/ fly with wings folded | ||
*/ | */</pre> | ||
</pre> | |||
| | {{Wiki|placeholder}} | ||
| | |s1= <!-- [] call [[BIS_fnc_aircraftWingStateCheck]] --> | ||
| | |r1= | ||
| | |x1= | ||
|seealso= | |||
}} | }} | ||
Latest revision as of 10:58, 6 December 2023
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 { init = "_this call BIS_fnc_AircraftSystemsInit"; }; 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 */
- Execution:
- call
- Groups:
- Aircraft Functionality
Syntax
- Syntax:
- Syntax needed
- 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