Mod:Creation Kit/HasRefType - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Returns if this reference has the specified LocationRefType.

Syntax
bool Function HasRefType(LocationRefType akRefType) native

Parameters

 * akRefType: The LocationRefType to query for.

Return Value
Whether this reference has the specified ref type or not.

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