Variables? - Printable Version +- 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Variables? (/thread-9289.html) |
Variables? - JoeBradleyUK - 07-21-2011 I want to make it so when i enter an area, after I have entered a different area, something happens. I know how to make it happen when you enter an area and something happens, but what about I just said? I think this includes variables, does it not? RE: Variables? - MrCookieh - 07-21-2011 You can activate area 2 when you enter area 1 You don't need any variables here RE: Variables? - Kyle - 07-21-2011 It does. Here you go, edit it to fit what you're doing: Code: void OnStart() Or was I mistaken? :/ RE: Variables? - JoeBradleyUK - 07-21-2011 (07-21-2011, 08:41 PM)MrCookieh Wrote: You can activate area 2 when you enter area 1 Oh I never thought of that, thanks, so could you use an example of variables and show how it works, so I don't have to ask in the future? Edit: what is the script function Of setting an area active? I can't find one that seems suitable! RE: Variables? - MrCookieh - 07-21-2011 Never used variables in Amnesia. It's quite confusing for me how Amnesia handles variables, because I got other experiences with variables. Anyways, I think Kyle's script should work RE: Variables? - JoeBradleyUK - 07-21-2011 (07-21-2011, 08:51 PM)MrCookieh Wrote: Never used variables in Amnesia. Ok, but still do you know the script function of activating areas? Because areas arn't entities so I don't know. RE: Variables? - MrCookieh - 07-21-2011 the same like entities SetEntitiyActive("Areaname", true); RE: Variables? - JoeBradleyUK - 07-21-2011 (07-21-2011, 08:58 PM)MrCookieh Wrote: the same like entities Oh. Alright thanks for your help. And yours too Kyle |