Mod:Creation Kit/HasSharedPowerGrid - ObjectReference

Member of: Mod:Creation Kit/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
if LeverRef.HasSharedPowerGrid(DoorRef) Debug.Trace("Door is on the same power grid as the lever") endIf
 * Is the door on the same power grid as the lever?