GetLeverState(string& asName); HELP - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: GetLeverState(string& asName); HELP (/thread-8542.html) |
GetLeverState(string& asName); HELP - X4anco - 06-11-2011 Hello peoples, I'm looking to use Code: GetLeverState(string& asName); In my level But how would I get the game to detect when the lever has been pulled all the way? -X4anco RE: GetLeverState(string& asName); HELP - ferryadams10 - 06-11-2011 { if(GetLeverState("Name of lever") = 1) { //Put here what to happen when state is max } } 0 = not stuck, 1 = at max, -1 = at min Regards, Ferry RE: GetLeverState(string& asName); HELP - X4anco - 06-11-2011 Thnx |