Background for Fallout 4
Member of the ObjectReference script
boolfunctionHasSharedPowerGrid(ObjectReferenceakCompare)Native

Description

Wiki Description

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

Documentation Comment

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


Caveats


Parameters

ObjectReferenceakCompare

CK Wiki Description

The reference to check against this one.


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

Auto-Generated Example

ObjectReference myObjectReference__akCompare

bool returnedValue = myObjectReference__toCallFunctionOn.HasSharedPowerGrid(myObjectReference__akCompare)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.