This thread existed a few days ago, here's dNALANGE's answer in case you don't know where to look : )
"I've fixed this issue, REALLY easy!
Do this :
Go to the modeleditor -> Look for your lamp -> Open it -> Settings -> User defined variables -> Make the lamp be a BUTTON.
There you go Wink
Smarty smart lange Wink
---
Be sure to NOT overwrite the Original lamp.
AND be sure to save the lamp into YOUR STORY!
Bet, almost everyone knows this, just tell this for people who are new to this."
There you go, no need to create any useless variable nightmare xD.
(01-23-2014, 10:03 PM)i3670 Wrote: mm yeah, you see these lamps are in the ceiling and it'd be more practical to have a lightswitch ergo the script.
Misunderstood that : ) !
I don't see any scripting mistakes in your code, but if I am correct none of the amfp lamps could be turned off if it wasn't set as a button right ?
Oh well ^^. (Sorry for not knowing anything about those lamps I'm still not using amfp stuff).
Then it's a scripting mistake right ? I'm not seeing it so I'll just give my usual advice, add debug messages basically everywhere and you'll know where the issue is. You'll probably need some to check if the variables are taking the correct values, then simply some to know if your script lines coding the light going off are correctly scripted.
Good luck with that and sorry for not being helpful so far xD
The good point is that debug messages can't fail to show you where your mistake lies, so if you do it cautiously there is no way you'll not know what is going wrong :3.