HasRefType - Location

From Creation Kit
Jump to: navigation, search

Member of: Location Script

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

Syntax

bool Function HasRefType(LocationRefType akRefType) native

Parameters

Return Value

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

Examples

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

See Also