HasRefType - Location

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Location Script

Returns if this location has any unreserved refs with the specified LocationRefType.

Syntax[edit | edit source]

bool Function HasRefType(LocationRefType akRefType) native

Parameters[edit | edit source]

Return Value[edit | edit source]

Whether this location has any unreserved refs with the specified ref type or not.

Examples[edit | edit source]

; Is this a house?
if (MyHouseProperty.HasRefType(HouseRefTypeProperty))
  Debug.Trace("My house has the 'house' reference type")
endIf

See Also[edit | edit source]