Frictional Games Forum (read-only)
Need help please! - 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: Need help please! (/thread-11194.html)



Need help please! - TheDavenia - 11-05-2011

How do I make it that if you die you respawn in another map?
Please help!


RE: Need help please! - Gamemakingdude - 11-05-2011

Dont have to post it twice. And im not sure.


RE: Need help please! - MrErkky - 11-05-2011

(11-05-2011, 02:30 PM)TheDavenia Wrote: How do I make it that if you die you respawn in another map?
Please help!

just set a checkpoint like this before the player dies:

{
CheckPoint("", "PlayerStartArea_2", "MapChange", "Hints", "Death");
}
void MapChange(string &in asName, int alCount)
{
ChangeMap("Cellar", "PlayerStartArea_2", "", "");
}

The player respawn in the map here named cellar. It worked for me, but there might be other better ways to do this. I'm kind of new to this Wink




RE: Need help please! - TheDavenia - 11-05-2011

(11-05-2011, 04:02 PM)MrErkky Wrote:
(11-05-2011, 02:30 PM)TheDavenia Wrote: How do I make it that if you die you respawn in another map?
Please help!

just set a checkpoint like this before the player dies:

{
CheckPoint("", "PlayerStartArea_2", "MapChange", "Hints", "Death");
}
void MapChange(string &in asName, int alCount)
{
ChangeMap("Cellar", "PlayerStartArea_2", "", "");
}

The player respawn in the map here named cellar. It worked for me, but there might be other better ways to do this. I'm kind of new to this Wink
Worked!
Thanks.