[SCRIPT] Saving the game when the player interacts with something like a bed - 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: [SCRIPT] Saving the game when the player interacts with something like a bed (/thread-16407.html) Pages:
1
2
|
RE: Saving the game when the player interacts with something like a bed - Skiveo - 06-22-2012 D: now when I added a timer so he "wakes up" again but now his head won't go back to normal void Awaken(string &in timer_name) { FadeIn(3); SetPlayerActive(true); ShowPlayerCrossHairIcons(true); SetPlayerCrouching(false); FadePlayerRollTo(0, 0, 150); MovePlayerHeadPos(0, 0, 0, 2, 2); } RE: Saving the game when the player interacts with something like a bed - drunkmonk - 06-22-2012 Delete the MovePlayerHeadPos and try this instead FadePlayerRollTo(0, 33,33); RE: Saving the game when the player interacts with something like a bed - Cruzore - 06-22-2012 wrong callback syntax for the timer. the correct one is: void Awaken(string &in asTimer) RE: Saving the game when the player interacts with something like a bed - Skiveo - 06-23-2012 Ok, everything works perfect now thanks RE: Saving the game when the player interacts with something like a bed - Skiveo - 06-23-2012 Huh only strange thing now is that the player bugs up and down when laying on the bed RE: Saving the game when the player interacts with something like a bed - Your Computer - 06-23-2012 (06-23-2012, 11:38 AM)Skiveo Wrote: Huh only strange thing now is that the player bugs up and down when laying on the bed You may have dropped the player's head too far down or at too fast of a speed. |