Tile - YMath - Clamp – Ylands

From Bohemia Interactive Community
(Redirected from Ylands:Tile - Math clamp)
Jump to navigation Jump to search

Clamp(Number, Min, Max)

YlandsTile-213.png

static clamp(number: number, min: number, max: number): number;

Parameters

number

min

Minimum number

max

Maximum number

Returns

number

Availability

Client, Server, Custom Controller

Description

This instruction will clamp input number between a minimum and maximum values (included).