Frictional Games Forum (read-only)

Full Version: Checkpoint troubles
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I dont want the monsters to disappear after death any help?
You could re-enable them in the CheckPoint callback.
(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.
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()"