Difference between revisions of "BIS fnc wpSteady"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= |p3=" to "|Parameter2= |p3=") |
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{RV|type=function |
− | |||
− | | | + | |game1= tkoh |
+ | |version1= 1.00 | ||
− | | | + | |gr1= Waypoints |
− | |||
− | | FLY STEADY [[Custom_Waypoints|custom waypoint]]. | + | |exec= spawn |
+ | |||
+ | |descr= FLY STEADY [[Custom_Waypoints|custom waypoint]]. | ||
Keep helicopter's pitch, bank, relative velocity a relative vector in given limits | Keep helicopter's pitch, bank, relative velocity a relative vector in given limits | ||
− | |||
− | |||
− | | [[Custom_Waypoints#Function|arguments]]: [limitArray,failLimit,failCode,warningCode,positiveCode] | + | |s1= [[Custom_Waypoints#Function|arguments]]: [limitArray, failLimit, failCode, warningCode, positiveCode] |
− | |p1= limitArray: [[Array]] - in format [deltaVelocity,deltaVector,vector] | + | |p1= limitArray: [[Array]] - in format [deltaVelocity, deltaVector, vector]: |
− | + | * deltaVelocity: [[Number]] - how much can [[velocity]] change (default: 20) | |
− | + | * deltaVector: [[Number]] - how much can vector direction change (default: 1.5) | |
− | + | * vector: [[Number]] - absolute vector limits for pitch and bank in degrees (default: 45) | |
− | |||
− | |p2= failLimit: [[Number]] - what time in seconds spent outside of limits will lead to fail (default: -1) | + | |p2= failLimit: [[Number]] - what time in seconds spent outside of limits will lead to fail (default: -1) |
− | |p3= failCode: [[Code]] - code executed when waypoint fails - time spent outside of limits reached failLimit (default: {}) | + | |p3= failCode: [[Code]] - code executed when waypoint fails - time spent outside of limits reached failLimit (default: {}) |
− | |||
− | |||
− | | [[ | + | |p4= warningCode: [[Code]] - code [[spawn]]ed every time vehicle is outside of limits (default: {}) |
− | + | ||
− | + | |p5= positiveCode: [[Code]] - code [[spawn]]ed every time vehicle is inside of limits (default: {}) | |
− | |x1= <code | + | |
+ | |r1= [[Nothing]] | ||
+ | |||
+ | |x1= <code>[ | ||
[[player]], | [[player]], | ||
[[position]] dude, | [[position]] dude, | ||
[[nil]], | [[nil]], | ||
− | [15,1.3,30], 10, {[[hintC]] "You failed";}, {[[hint]] "Watch out!";}, {[[hint]] "Good";} | + | [15,1.3,30], 10, { [[hintC]] "You failed"; }, { [[hint]] "Watch out!"; }, { [[hint]] "Good"; } |
− | ] [[spawn]] BIS_fnc_wpSteady;</code> | + | ] [[spawn]] [[BIS_fnc_wpSteady]];</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
+ | |seealso= | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 23:35, 7 August 2021
Description
- Description:
- FLY STEADY custom waypoint. Keep helicopter's pitch, bank, relative velocity a relative vector in given limits
- Execution:
- spawn
- Groups:
- Waypoints
Syntax
- Syntax:
- arguments: [limitArray, failLimit, failCode, warningCode, positiveCode]
- Parameters:
- limitArray: Array - in format [deltaVelocity, deltaVector, vector]:
- failLimit: Number - what time in seconds spent outside of limits will lead to fail (default: -1)
- failCode: Code - code executed when waypoint fails - time spent outside of limits reached failLimit (default: {})
- warningCode: Code - code spawned every time vehicle is outside of limits (default: {})
- positiveCode: Code - code spawned every time vehicle is inside of limits (default: {})
- Return Value:
- Nothing
Examples
- Example 1:
[ player, position dude, nil, [15,1.3,30], 10, { hintC "You failed"; }, { hint "Watch out!"; }, { hint "Good"; } ] spawn BIS_fnc_wpSteady;
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