GetWidth - ObjectReference

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Calculates and returns the width of this reference (distance between the bounding box min and max x values).

Syntax[edit | edit source]

float Function GetWidth() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The width of this object.

Examples[edit | edit source]

Debug.Trace("The box is " + Box.GetWidth() + " units wide")

See Also[edit | edit source]