GetObjectType

From the Fallout3 GECK Wiki
(Redirected from GetType)
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