HasRefType - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Returns if this reference has the specified LocationRefType.

Syntax

bool Function HasRefType(LocationRefType akRefType) native

Parameters

Return Value

Whether this reference has the specified ref type or not.

Examples

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

See Also