BIS fnc wpAngle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function" to "{{RV|type=function ")
m (Text replacement - " " to " ")
Line 5: Line 5:
| [[Custom_Waypoints#Function|arguments]]: [circleLimit, circleBorder, circleDir, customCond, hint]|p1= circleLimit: [[Number]] - what time in seconds must be spent withing limit (default: 0)
| [[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]]
|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>
|x1= <code><nowiki>[</nowiki>
[[player]],
[[player]],

Revision as of 19:50, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
spawn
Groups:
Waypoints

Syntax

Syntax:
Syntax needed
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:
Return value needed

Examples

Example 1:
[ player, position dude, 250, 60 1, 45 {alive dude}, "Spotted: %1%2" ] spawn BIS_fnc_wpAngle;

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