BIS fnc wpAngle: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1= Waypoints |GROUP1=") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| TKOH |Game name= | | TKOH |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Waypoints |GROUP1= | |gr1= Waypoints |GROUP1= | ||
| CIRCLE [[Custom_Waypoints|custom waypoint]]. | | CIRCLE [[Custom_Waypoints|custom waypoint]]. | ||
Line 13: | Line 11: | ||
Keep helicopter rotated in given vector toward target. | Keep helicopter rotated in given vector toward target. | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| [[Custom_Waypoints#Function|arguments]]: [circleLimit, circleBorder, circleDir, customCond, hint] |SYNTAX= | | [[Custom_Waypoints#Function|arguments]]: [circleLimit, circleBorder, circleDir, customCond, hint] |SYNTAX= | ||
Line 27: | Line 24: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code><nowiki>[</nowiki> | |x1= <code><nowiki>[</nowiki> | ||
Line 36: | Line 32: | ||
] [[spawn]] BIS_fnc_wpAngle;</code> |EXAMPLE1= | ] [[spawn]] BIS_fnc_wpAngle;</code> |EXAMPLE1= | ||
| exec=spawn |= | | exec=spawn |= | ||
Revision as of 00:08, 17 January 2021
Description
- Description:
- CIRCLE custom waypoint. Keep helicopter rotated in given vector toward target.
- Execution:
- spawn
- Groups:
- Waypoints
Syntax
- Syntax:
- arguments: [circleLimit, circleBorder, circleDir, customCond, hint]
- Parameters:
- circleLimit: Number - what time in seconds must be spent withing limit (default: 0)
- circleBorder: Number - precision tolerance (smaller number means more precision) (default: 0.75)
- circleDir: Number or Array - limit - direction or vector towards target (default: view of 2nd crew member - left (-90) or right (90))
- customCond: Code - additional condition required for waypoint completion. Passed arguments are [_veh,_target]. (default: {true})
- hint: String - formatted hint. %1 is value showing how precise current vector is (in percents), %2 is precent symbol "%1" (default: "%1%2")
- Return Value:
- Nothing
Examples
- Example 1:
[ player, position dude, 250, 60 1, 45 {alive dude}, "Spotted: %1%2" ] spawn BIS_fnc_wpAngle;
Additional Information
- See also:
- Waypoint functions
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