Skip to content

Lamp Lighter Script

GrymmlyGrymmly Member Posts: 10
I am looking for a script to put into an Area's OnHeartbeat event, which will, if it is daytime, will cause an NPC to wander from torch to torch, shutting off the light, and if night, the NPC will wander from torch to torch turning them on. Obviously the NPC would need to check each torch to make sure they don't turn off lights at night, or turn them on during the day.
I use Lilac Soul's Script Generator to do scripts, and while attempting this script, I didn't see a way to check to see if the torch was activated or not. My own understanding of scripting is only good enough to make small modification in simple scripts, so any help with this would be greatly appreciated.

Comments

  • OndaderthadOndaderthad Member Posts: 9
    There is a tutorial for Lamplighters in the x2-ambient-system-tutorial
  • GrymmlyGrymmly Member Posts: 10
    Wow, okay. I guess I forgot about that. I haven't worked with the toolset in a few years.
    Thanks for the reminder. :smile:
  • MermutMermut Member Posts: 44
    edited July 2018
    posted to wrong thread
  • GrymmlyGrymmly Member Posts: 10
    How is it the wrong thread when I was looking for help with scripting..?
  • GrymmlyGrymmly Member Posts: 10
    I got my lamp lighter working just fine. Thanks for the help. :smile:
Sign In or Register to comment.