GetEditorSize

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(size:float) reference.GetEditorSize object:ref

Returns the value contained in the hidden 'size' field of the editor's object window for the specified object. This is a rough scalar approximation of the dimensions of the object. Return value is typically similar to that of GetBoundingRadius.

The game only calculates and stores this value for objects for which at least one reference exists in the game world.


Notes

  • Seems to be the average of the three dimensions of the mesh, i.e., ( width + depth + height ) / 3