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

Pages: 1 2 3


Enemy respawn? - Kirbypwnage - 02-23-2013

Okay, so on my map I want the player to be able to be killed by two monsters, but I also want the player to be able to lure them out on a bridge, so they fall down and die. I have fixed that scripting, and everything works fine. But if the player gets killed by the monsters, they will despawn... And they are needed to go further. So my question is if it is possible to make an enemy respawn just like you, when you die?
Or rather, how do I stop an enemy from despawning after you die?
Is there any way to do this?


RE: Enemy respawn? - PutraenusAlivius - 02-23-2013

I think that it is hard-coded.


RE: Enemy respawn? - Kirbypwnage - 02-23-2013

(02-23-2013, 02:31 PM)JustAnotherPlayer Wrote: I think that it is hard-coded.

I don't mind. As long as someone can tell me how.


RE: Enemy respawn? - tonitoni1998 - 02-23-2013

Maybe you can work with CreateDataCache. I dont know exactly how it works, but with a checkpoint it migth work somehow. I dont know how though :/


RE: Enemy respawn? - Kirbypwnage - 02-23-2013

(02-23-2013, 02:47 PM)tonitoni1998 Wrote: Maybe you can work with CreateDataCache. I dont know exactly how it works, but with a checkpoint it migth work somehow. I dont know how though :/

Doesn't matter if you know how to do it 100%. I'm glad your trying to help anyway. Wink


RE: Enemy respawn? - OriginalUsername - 02-23-2013

Creating an checkpoint should do it.

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



RE: Enemy respawn? - Kirbypwnage - 02-23-2013

(02-23-2013, 02:56 PM)Smoke Wrote: Creating an checkpoint should do it.

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

Oh? In that case, it should be quite simple. Thanks for helping!


RE: Enemy respawn? - OriginalUsername - 02-23-2013

(02-23-2013, 02:59 PM)Kirbypwnage Wrote:
(02-23-2013, 02:56 PM)Smoke Wrote: Creating an checkpoint should do it.

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

Oh? In that case, it should be quite simple. Thanks for helping!

Click this for more help with commands.


RE: Enemy respawn? - Kirbypwnage - 02-23-2013

Hmm. No, a checkpoint does not work. I respawn where I want to and everything is good, but the monsters are still gone.


RE: Enemy respawn? - OriginalUsername - 02-23-2013

Could you give us the script?