BIS fnc clampVector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function " to "{{RV|type=function ")
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
Line 9: Line 9:
| Clamps vector values between provided min/max boundaries.
| Clamps vector values between provided min/max boundaries.


{{Informative | This function can be used to clamp any [[Array]] of [[Number]]s (even though it is not its main usage).}}
{{Feature | Informative | This function can be used to clamp any [[Array]] of [[Number]]s (even though it is not its main usage).}}


| [vector, min, max] call [[BIS_fnc_clampVector]]
| [vector, min, max] call [[BIS_fnc_clampVector]]

Revision as of 01:00, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Vectors

Syntax

Syntax:
Syntax needed
Parameters:
vector: Vector3D - (Optional, default [0,0,0]) the vector to be clamped
min: Number - (Optional, default 0)
max: Number - (Optional, default 0)
Return Value:
Return value needed

Examples

Example 1:
private _newVelocity = [velocity vehicle player, -100, 100] call BIS_fnc_clampVector; vehicle player setVelocity _newVelocity;

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