HasSharedPowerGrid - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script (Papyrus)

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

Syntax[edit | edit source]

bool Function HasSharedPowerGrid(ObjectReference akChild) native

Parameters[edit | edit source]

  • akChild: The reference to check against this one.

Return Value[edit | edit source]

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

Examples[edit | edit source]

; 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[edit | edit source]