![]() |
2 if statements(Solved) - 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: 2 if statements(Solved) (/thread-17531.html) |
2 if statements(Solved) - Lukaboy8 - 08-06-2012 Hello everybody, I'm trying to make a script like this: PHP Code: if(GetSwingDoorLocked("Librarydoor") == false) & (HasItem("BeroomKey") == false) Obviously the & isn't corrects but how should I do it different? Luke RE: 2 if statements - Adny - 08-06-2012 Try this: if(GetSwingDoorLocked("Librarydoor") == false && HasItem("BeroomKey") == false) { AddTimer("Libraryquest", 0.0f, "CheckLibraryKey"); } RE: 2 if statements - Lukaboy8 - 08-06-2012 It works now thanks! |