HasLocRefType - ObjectReference

From the Fallout4 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 HasLocRefType(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.HasLocRefType(DoomRefTypeProperty))
  Debug.Trace("The happy sword is a doom sword")
endIf

See Also[edit | edit source]