Frictional Games Forum (read-only)
Checkpoint troubles - 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: Checkpoint troubles (/thread-24600.html)



Checkpoint troubles - Yoshida - 02-12-2014

Hi I dont want the monsters to disappear after death any help?


RE: Checkpoint troubles - Mudbill - 02-12-2014

You could re-enable them in the CheckPoint callback.


RE: Checkpoint troubles - GrAVit - 02-12-2014

(02-12-2014, 12:11 AM)Yoshida Wrote: Hi I dont want the monsters to disappear after death any help?

This could be of use. Didn't look into it too much, I used a different method myself, but I'm unable to find it in the wiki.


RE: Checkpoint troubles - Slanderous - 02-12-2014

Put a script area in a point that you want player to respawn, and name the player start area as "Checkpoint", then use this script.

PHP Code:
void OnStart()

{
CheckPoint("","Checkpoint","Reset","","");
}

void Reset(string &in asNameint alCount)
{
SetEntityActive("monster_name",true);
ResetProp("monster_name");


Keep in mind that it only happens on start, if you want to make it saving every time you enter the map simply change the Start to Enter to make it say "void OnEnter()"