- Found in:
- Vanilla
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
ObjectReferenceakPowerGenerator
CK Wiki Description
The ObjectReference generator which is supplying power.
Examples
Event OnPowerOn(ObjectReference akPowerGenerator)
Debug.Trace(akPowerGenerator+ " powers another item.")
EndEventAuto-Generated Example
Scriptname MyCoolScript extends ObjectReference
event OnPowerOn(ObjectReference akPowerGenerator)
Debug.trace("Event received - OnPowerOn: akPowerGenerator = " + akPowerGenerator)
endEvent