Background for Fallout 4
Member of the ObjectReference script
boolfunctionHasRefType(LocationRefTypeakRefType)

Description

Wiki Description

Returns if this reference has the specified LocationRefType.

Documentation Comment

Returns if this reference has the specified location ref type (for backwards compatibility with function rename


Caveats


Parameters

LocationRefTypeakRefType

CK Wiki Description

The LocationRefType to query for.


Examples

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

Auto-Generated Example

LocationRefType myLocationRefType__akRefType

bool returnedValue = myObjectReference__toCallFunctionOn.HasRefType(myLocationRefType__akRefType)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.