Background for Starfield
Member of the ObjectReference script
eventOnPowerOn(ObjectReferenceakPowerGenerator)

Description

Wiki Description

Event received when a workshop item receives power for the first time.

Documentation Comment

Event received when a workshop item receives power


Parameters

  1. ObjectReferenceakPowerGenerator

    CK Wiki Description

    The ObjectReference generator which is supplying power.


Examples

Event OnPowerOn(ObjectReference akPowerGenerator)
  Debug.Trace(akPowerGenerator+ " powers another item.")
EndEvent

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnPowerOn(ObjectReference akPowerGenerator)
    Debug.trace("Event received - OnPowerOn: akPowerGenerator = " + akPowerGenerator)
endEvent

Related Pages


Additional References

View this event’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.