GetObjectDimensions

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Returns either the length(X), width(Y) or height(Z) (in game Units) of a physical game-object.

Syntax

[help]
(dimension:float) reference.GetObjectDimensions axis:X/Y/Z baseForm:ref 

Or:

(dimension:float) reference.GetObjDim axis:X/Y/Z baseForm:ref

Example

set fDimX to objectRef.GetObjectDimensions X
set fDimZ to GetObjectDimensions Z NukaVendingMachine 

Notes

  • The dimensions are the same as those of the bounding-box encapsulating the object, in the GECK.

See Also