BIS fnc clamp: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(created page)
 
m (infobox to template)
Line 24: Line 24:
Returns:
Returns:
SCALAR - Clamped value
SCALAR - Clamped value
*/</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_clamp]]|Syntax=
|[] call [[BIS_fnc_clamp]]|Syntax=

Revision as of 15:26, 2 April 2019

Hover & click on the images for description

Description

Description:
/*
	Author:
	Nelson Duarte
	
	Description:
	Clamps scalar between min / max
	
	Parameters:
	_this: ARRAY
		0: SCALAR - The value to clamp
		1: SCALAR - Min value
		2: SCALAR - Max value
	
	Returns:
	SCALAR - Clamped value
*/
Template:placeholder
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_clamp
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:

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