Lua:Sign

Lua:Sign

From BeamNG

Returns 1 if the value of 'n' is greater than 0, -1 it it's lower than 0, and 0 if the value is 0.

File location: lua\utils.lua:58

Syntax

number sign (number n)