Abs

From the Oblivion ConstructionSet Wiki
Revision as of 12:21, 9 August 2006 by imported>DragoonWraith (OBSE)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

abs [float]

Returns the absolute value of a number, i.e. it's distance from zero, i.e. always positive

Example

set n to abs -54

n = 54

set n to abs 54

n = 54