[SCRIPT] Quit/Reset on Death - 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] Quit/Reset on Death (/thread-13884.html) |
Quit/Reset on Death - shmuckdom - 03-10-2012 Hey guys got to make this nice and short, so in my intro there is a short monster chase and if you die and respawn back to the start, all in all, the whole introduction to the story is glitched. So, I would like to make it that if you are killed by this grunt, you either A, force quit the game (like in Justine, or purposely making a script error) or B, resetting the map completely on respawn. I would just like to know how to do this, THANK YOU! -DoM RE: Quit/Reset on Death - flamez3 - 03-10-2012 ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound); asMapName - the file to load asStartPos - the name of the StartPos on the next map asStartSound - the sound that is played when the change starts asEndSound - the sound that is played when the new map is loaded RE: Quit/Reset on Death - UnseenLegend ( NL ) - 03-10-2012 I'm afraid that's not possible but you can create a check point Like if you walk over the area trigger and the next thing, a grunt killed you. You will respawn at that area you walked over. If you add a playerstart on area type |