GetObjectType

From the Fallout3 GECK Wiki
Revision as of 14:40, 19 July 2014 by imported>Odessa (expanded)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Returns the type code of the specified base form, or calling reference.

Syntax

[help]
(TypeCode:int) ref.GetObjectType item:form 

Or:

(TypeCode:int) ref.GetType item:form

Example

ref Something
if (GetType Something) == 41 ; ammo
   ; do something appropriate for ammo
endif

See Also