BIS fnc roundDir: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
||
Line 29: | Line 29: | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:roundDir}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:roundDir}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:roundDir}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:roundDir}}]] |
Revision as of 02:00, 2 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Math
Syntax
- Syntax:
- Syntax needed
- Parameters:
- rawDirection: Number - direction to round
- rounding: Number - (Optional, default 90) - rounding value. With 90° possible return values are 0, 90, 180 and 270.
- Return Value:
- Return value needed
Examples
- Example 1:
player setDir ([getDir player, 45] call BIS_fnc_roundDir);
- Example 2:
[204.2, 10] call BIS_fnc_roundDir; // will return 200
- Example 3:
[271, 180] call BIS_fnc_roundDir; // will return 360
- Example 4:
70 call BIS_fnc_roundDir; // will return 90
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