Jump to content

[Script] Power something up - Then lights go on


Zorkaz

Recommended Posts

This simple script is not working in anyway but I can't say why.

 

Basically as soon as the object (A former power outlet) receives power the lights should go on.

 

But they don't. Any clues?

Scriptname TCReceivePowerScr extends ObjectReference

ObjectReference Property Light01 Auto


Event OnPowerOn(ObjectReference akPowerGenerator)
Light01.enable()

EndEvent

Event OnPowerOff()
Light01.disable()

EndEvent



 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...