Difference between revisions of "BIS fnc wpAngle"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
m (template:command argument fix)
Line 10: Line 10:
  
 
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=
  
 
|p1= circleLimit: [[Number]] - what time in seconds must be spent withing limit (default: 0)|=
 
|p1= circleLimit: [[Number]] - what time in seconds must be spent withing limit (default: 0)|=
Line 21: Line 21:
 
|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") |=
 
|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]] |= Return value
+
| [[Nothing]] |RETURNVALUE=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
   
 
   
Line 29: Line 29:
 
250,
 
250,
 
60 1, 45 {[[alive]] dude}, "Spotted: %1%2"
 
60 1, 45 {[[alive]] dude}, "Spotted: %1%2"
] [[spawn]] BIS_fnc_wpAngle;</code> |= Example 1
+
] [[spawn]] BIS_fnc_wpAngle;</code> |EXAMPLE1=
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
 
| exec=spawn |=
 
| exec=spawn |=
  
| [[:Category:Function Group: Waypoints|Waypoint functions]] |= See also
+
| [[:Category:Function Group: Waypoints|Waypoint functions]] |SEEALSO=
  
 
}}
 
}}

Revision as of 14:34, 7 April 2019

Hover & click on the images for description

Description

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

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

Notes

Bottom Section