Difference between revisions of "BIS fnc wpAngle"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...)
m (Text replacement - "arguments" to "Custom Waypoint arguments")
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Function| TKOH|1.00|gr1= Waypoints| CIRCLE [[Custom_Waypoints|custom waypoint]].
+
{{RV|type=function
  
 +
|game1= tkoh
 +
|version1= 1.00
 +
 +
|gr1= Waypoints
 +
 +
|descr= CIRCLE [[Custom_Waypoints|custom waypoint]].
 
Keep helicopter rotated in given vector toward target.
 
Keep helicopter rotated in given vector toward target.
| [[Custom_Waypoints#Function|arguments]]: [circleLimit, circleBorder, circleDir, customCond, hint]|p1= circleLimit: [[Number]] - what time in seconds must be spent withing limit (default: 0)
 
|p2= circleBorder: [[Number]] - precision tolerance (smaller number means more precision) (default: 0.75)|p3= circleDir: [[Number]] or [[Array]] - limit - direction or vector towards target (default: view of 2nd [[crew]] member - left (-90) or right (90))|p4= customCond: [[Code]] - additional condition required for waypoint completion. Passed arguments are [_veh,_target]. (default: {[[true]]})|p5= hint: [[String]] - [[format]]ted hint. %1 is value showing how precise current vector is (in percents), %2 is precent symbol "%1" (default: "%1%2")| [[Nothing]]
 
 
 
|x1= <code><nowiki>[</nowiki>
 
[[player]],
 
[[position]] dude,
 
250,
 
60 1, 45 {[[alive]] dude}, "Spotted: %1%2"
 
] [[spawn]] BIS_fnc_wpAngle;</code>| exec=spawn
 
  
| [[:Category:Function Group: Waypoints|Waypoint functions]]}}
+
|exec= spawn
 +
 
 +
|s1= [[Custom Waypoints#Function|Custom Waypoint arguments]]: [circleLimit, circleBorder, circleDir, customCond, hint]
 +
 
 +
|p1= circleLimit: [[Number]] - what time in seconds must be spent withing limit (default: 0)
 +
 
 +
|p2= circleBorder: [[Number]] - precision tolerance (smaller number means more precision) (default: 0.75)
 +
 
 +
|p3= circleDir: [[Number]] or [[Array]] - limit - direction or vector towards target (default: view of 2nd [[crew]] member - left (-90) or right (90))
 +
 
 +
|p4= customCond: [[Code]] - additional condition required for waypoint completion. Passed arguments are [_veh,_target]. (default: {[[true]]})
 +
 
 +
|p5= hint: [[String]] - [[format]]ted hint. %1 is value showing how precise current vector is (in percents), %2 is precent symbol "%1" (default: "%1%2")
 +
 
 +
|r1= [[Nothing]]
  
 +
|x1=
  
[[Category:Take_On_Helicopters:_Functions|wpAngle]]
+
|seealso= ‎[[:Category:Function Group: Waypoints|Waypoint functions]]
[[Category:Function Group: Waypoints|wpAngle]]
+
}}

Latest revision as of 12:28, 1 July 2022

Hover & click on the images for description

Description

Description:
CIRCLE custom waypoint. Keep helicopter rotated in given vector toward target.
Execution:
spawn
Groups:
Waypoints

Syntax

Syntax:
Custom Waypoint 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

Examples:
Example needed

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