Frictional Games Forum (read-only)
How to make player die and change map ? - 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: How to make player die and change map ? (/thread-9753.html)



How to make player die and change map ? - narutohokager - 08-14-2011

Hello everybody Big Grin

I want to create a moment when a grunt kills the player changes map directly, like the map "22_torture_chancel"

Is it possible?

Thank you


RE: How to make player die and change map ? - Khyrpa - 08-14-2011

CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

asCallback - the function to call when the player dies/respawns

then from that callback thing, just use this
ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);