GetObjectType

From GECK

(Redirected from GetType)

A function added by the Fallout Script Extender.

Description

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

Syntax

(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

Personal tools