Frictional Games Forum (read-only)
Monsters respawn - 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: Monsters respawn (/thread-17497.html)



Monsters respawn - candlejack131 - 08-05-2012

I was wondering if anyone could give me a script that keeps monsters even after death


RE: Monsters respawn - Your Computer - 08-05-2012

ResetProp, then SetEntityActive.


RE: Monsters respawn - candlejack131 - 08-05-2012

...? I'm sorry i am a terrible scripter how exactly would i do that


RE: Monsters respawn - EXAWOLT - 08-05-2012

ResetProp(string& asName);
SetEntityActive(string& asName, bool abActive);


RE: Monsters respawn - candlejack131 - 08-05-2012

Were does the name of my entity go


RE: Monsters respawn - lolmaster - 08-05-2012

Let's say I have a grunt named "grunt."

SetEntityActive("grunt", true);


RE: Monsters respawn - Steve - 08-05-2012

ResetProp("monster");
SetEntityActive("monster", true);
 
I hope this helps


RE: Monsters respawn - candlejack131 - 08-05-2012

(08-05-2012, 05:52 PM)Steve Wrote: ResetProp("monster");
SetEntityActive("monster", true);

I hope this helps
Fantastic and Thanks Big Grin now my last question were in my hps should i place it


RE: Monsters respawn - Steve - 08-05-2012

first of all make an Checkpoint with:
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

here an example:
CheckPoint ("mycheckpoint", "mystartposition", "myvoidafterIdie", "Categorynamewhenyoudie", "entrynamewhenyoudie");

so after that(you can make this check point anywhere like when you touch an area or just when you pick up an item also you have to make an startposition for when you start when you die)

void myvoidafterIdie(string &in asName, int alCount)
{
ResetProp("monster");
SetEntityActive("monster", true);
}

and for in the .Lang file:

<CATEGORY Name="Categorynamewhenyoudie">
<Entry Name="entrynamewhenyoudie">pu text you want to see when you die here</Entry>
</CATEGORY>

I hope you get it Big Grin
if not just ask.


RE: Monsters respawn - candlejack131 - 08-05-2012

(08-05-2012, 07:43 PM)Steve Wrote: first of all make an Checkpoint with:
CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

here an example:
CheckPoint ("mycheckpoint", "mystartposition", "myvoidafterIdie", "Categorynamewhenyoudie", "entrynamewhenyoudie");

so after that(you can make this check point anywhere like when you touch an area or just when you pick up an item also you have to make an startposition for when you start when you die)

void myvoidafterIdie(string &in asName, int alCount)
{
ResetProp("monster");
SetEntityActive("monster", true);
}

and for in the .Lang file:

<CATEGORY Name="Categorynamewhenyoudie">
<Entry Name="entrynamewhenyoudie">pu text you want to see when you die here</Entry>
</CATEGORY>

I hope you get it Big Grin
if not just ask.
Thanks :3 ill test it out as soon as my custom monster is finished