BIS fnc wpAngle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - " |game1= tkoh |version1= 1.00 |game2= arma3 |version2= 0.50 " to " |game1= tkoh |version1= 1.00 ")
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| TKOH |Game name=
|game1= tkoh
|version1= 1.00


|1.00|Game version=
|gr1= Waypoints
____________________________________________________________________________________________


| CIRCLE [[Custom_Waypoints|custom waypoint]].
|descr= CIRCLE [[Custom_Waypoints|custom waypoint]].
Keep helicopter rotated in given vector toward target.


Keep helicopter rotated in given vector toward target.
|exec= spawn
|DESCRIPTION=
____________________________________________________________________________________________


| [[Custom_Waypoints#Function|arguments]]: [circleLimit, circleBorder, circleDir, customCond, hint] |SYNTAX=
|s1= [[Custom_Waypoints#Function|arguments]]: [circleLimit, circleBorder, circleDir, customCond, hint]


|p1= circleLimit: [[Number]] - what time in seconds must be spent withing limit (default: 0)|Parameter1=
|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) |Parameter2=


|p3= circleDir: [[Number]] or [[Array]] - limit - direction or vector towards target (default: view of 2nd [[crew]] member - left (-90) or right (90)) |PARAMETER3=
|p2= circleBorder: [[Number]] - precision tolerance (smaller number means more precision) (default: 0.75)


|p4= customCond: [[Code]] - additional condition required for waypoint completion. Passed arguments are [_veh,_target]. (default: {[[true]]}) |PARAMETER4=
|p3= circleDir: [[Number]] or [[Array]] - limit - direction or vector towards target (default: view of 2nd [[crew]] member - left (-90) or right (90))


|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") |Parameter5=
|p4= customCond: [[Code]] - additional condition required for waypoint completion. Passed arguments are [_veh,_target]. (default: {[[true]]})


| [[Nothing]] |RETURNVALUE=
|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")
____________________________________________________________________________________________
 
|x1= <code><nowiki>[</nowiki>
[[player]],
[[position]] dude,
250,
60 1, 45 {[[alive]] dude}, "Spotted: %1%2"
] [[spawn]] BIS_fnc_wpAngle;</code> |EXAMPLE1=


____________________________________________________________________________________________
|r1= [[Nothing]]
| exec=spawn |=


| [[:Category:Function Group: Waypoints|Waypoint functions]] |SEEALSO=
|x1=


|seealso= ‎[[:Category:Function Group: Waypoints|Waypoint functions]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Take_On_Helicopters:_Functions|wpAngle]]
[[Category:Function Group: Waypoints|wpAngle]]

Revision as of 18:51, 14 June 2021

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:
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