Okay so here is what I'm trying to do.
I want to make it so that when you touch a NPC (set to player touch) it turns on a switch, but the second you step away from the NPC so you are no where near it the switch automatically turns off. Thing is I've tried to do this but I can't seem to find any good examples. Plus I want the NPC to run around so I can't set events around the NPC so the event turns off. I've tried using conditional branches and timers to turn the switch off once you walk away from the event npc- and it's just giving me a hard time.
Is there any way I can do this?
I want to make it so that when you touch a NPC (set to player touch) it turns on a switch, but the second you step away from the NPC so you are no where near it the switch automatically turns off. Thing is I've tried to do this but I can't seem to find any good examples. Plus I want the NPC to run around so I can't set events around the NPC so the event turns off. I've tried using conditional branches and timers to turn the switch off once you walk away from the event npc- and it's just giving me a hard time.
Is there any way I can do this?

