HasRefType - ObjectReference

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Returns if this reference has the specified LocationRefType.

Syntax[edit | edit source]

bool Function HasRefType(LocationRefType akRefType) native

Parameters[edit | edit source]

Return Value[edit | edit source]

Whether this reference has the specified ref type or not.

Examples[edit | edit source]

; Does the object have the doom ref type?
if (HappySwordProperty.HasRefType(DoomRefTypeProperty))
  Debug.Trace("The happy sword is a doom sword")
endIf

See Also[edit | edit source]