Kill Player - 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: Kill Player (/thread-18845.html) |
Kill Player - IGabx - 10-19-2012 I wanna make an intro where the player walks through a hallway to a door, then the screen fades out, there's a door breaking sound followed by a grunt sound, then the player dies with the phrase "Welcome to The Beginning". I already got the player walking part, and sort of the death phrase, but is there a script to kill the player, or do I actually need to spawn a grunt? RE: Kill Player - Acies - 10-19-2012 GivePlayerDamage(100, "slash", true, true); Hopefully that'll do it. RE: Kill Player - IGabx - 10-19-2012 Ahh thanks a bunch. I forgot about that script, it's been a while since i've used it. RE: Kill Player - Damascus - 10-19-2012 Also make sure to use a Check point right away so that you can display the proper death message. void CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry); Sets a checkpoint at which the player will respawn in case he dies. Callback syntax: void MyFunc(string &in asName, int alCount) Count is 0 on the first checkpoint load! asName - the internal name asStartPos - the name of the StartPos in the editor asCallback - the function to call when the player dies/respawns asDeathHintCat - the category of the death hint message to be used in the .lang file asDeathHintEntry - the entry in the .lang file RE: Kill Player - IGabx - 10-19-2012 Ahh yes I remember death checkpoints. Anyways, thanks for the help. |