HasSharedPowerGrid - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script (Papyrus)

Returns true if this reference is on the same power grid as the compared reference.

Syntax

bool Function HasSharedPowerGrid(ObjectReference akChild) native

Parameters

  • akChild: The reference to check against this one.

Return Value

Whether akChild is on the same power grid as this reference.

Examples

; Is the door on the same power grid as the lever?
if LeverRef.HasSharedPowerGrid(DoorRef)
  Debug.Trace("Door is on the same power grid as the lever")
endIf

See Also