Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Axis & Allies 1942 Online is now available in Early Access! Buy it on Steam. The FAQ is available.
New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

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.


Sign In or Register to comment.