![]() |
Sanity Check - 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: Sanity Check (/thread-21953.html) |
Sanity Check - Lizard - 06-28-2013 Hi guys It's been along time since I last worked with amnesia maps and scripting, but I am slowly starting again. I gotten to a point where i want the game to check the players sanity and if it's below or egual to a certain value, things should happen. I tryed to play around with GetPlayerSanity, but i cant make it work. Every help would be appreciated. RE: Sanity Check - PutraenusAlivius - 06-28-2013 Code: if(GetPlayerSanity()) If I'm not mistaken. RE: Sanity Check - Lizard - 06-28-2013 I have try'ed this without success: if(GetPlayerSanity<=40) if((GetPlayerSanity) <= (40)) if(GetPlayerSanity(40)) RE: Sanity Check - Tomato Cat - 06-28-2013 You're forgetting your parentheses. =p Try this: PHP Code: if(GetPlayerSanity() <= Number) RE: Sanity Check - Lizard - 06-28-2013 Thanks for help guys. Works fine now |