+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Need help with a script (again) (/thread-4666.html)
So you check the variable that tells you if something enters or leaves the area, that is alState.
Then if you name you lights the same as the area but suffix them with _light, you can use the variable with the name of the area to not write everything specific.
Example: Area is named "MyArea", you name the light "MyArea_Light", in the script you then use asChild+"_Light" which is the same as "MyArea_Light" because asChild is the variable containing what area it is that something entered into.
RE: Need help with a script (again) - Akasu - 09-23-2010
Well that is simple. I'll use it. Thanks.
Will keep the Pandemoneous's script somewhere in case I need to use local variables sometime.
RE: Need help with a script (again) - MulleDK19 - 09-23-2010