Difference between revisions of "GetEditorSize"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>QQuix
(New page)
 
imported>QQuix
(Added a note about how it is calculated)
 
Line 18: Line 18:
  }}  
  }}  


===Notes===
*Seems to be the average of the three dimensions of the mesh, i.e., ( width + depth + height ) / 3
[[Category:Functions]]  
[[Category:Functions]]  
[[Category:Functions (OBSE)]]  
[[Category:Functions (OBSE)]]  
[[Category:Functions (OBSE v0020)]]
[[Category:Functions (OBSE v0020)]]

Latest revision as of 11:27, 26 December 2014

< [[::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