Difference between revisions of "GetObjectDimensions"

From GECK

 
Line 14: Line 14:
 
   |Optional = y
 
   |Optional = y
 
   }}
 
   }}
  |example = ObjectRef.GetObjectDimensions X
+
  |example = set fDimX to objectRef.GetObjectDimensions X
  
  GetObjectDimensions Z NukaVendingMachine
+
  set fDimZ to GetObjectDimensions Z NukaVendingMachine
 
}}
 
}}
 
==Notes==
 
==Notes==
Line 22: Line 22:
 
==See Also==
 
==See Also==
 
[[Category:Functions_(JIP)]]
 
[[Category:Functions_(JIP)]]
[[Category:Miscellaneous Functions (JIP)]]
+
[[Category:Misc Reference Functions (JIP)]]

Latest revision as of 02:36, 29 March 2017

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

(dimension:float) reference.GetObjectDimensions 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

Personal tools