Frictional Games Forum (read-only)
[SCRIPT] [SOLVED] Death Teleporting - 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: [SCRIPT] [SOLVED] Death Teleporting (/thread-26235.html)

Pages: 1 2


RE: Death Teleporting - Straxedix - 09-20-2014

That's not what i want here...He can't run...I just want to grunt kill him and teleport to other map...


RE: Death Teleporting - Radical Batz - 09-20-2014

(09-20-2014, 09:41 AM)Straxedix Wrote: That's not what i want here...He can't run...I just want to grunt kill him and teleport to other map...

Then what you could use is a checkpoint, so if player dies it will load a checkpoint. And inside the checkpoint function you can put change map so when exactly the player respawns, it could change the map.

Example:

Add this to the function where it will spawn the grunt or the last monster which will kill ya
PHP Code:
CheckPoint ("""""changemap""LANGENTRY""ENTRYTEXT"); 

And the checkpoint will call this when dying

PHP Code:
void changemap(string &in asNameint alCount)
{
    
ChangeMap("MAPNAME","PlayerStartArea_1""""");
    




RE: Death Teleporting - Straxedix - 09-20-2014

Can you explain a little bit...What text entry ?? I don't understand


RE: Death Teleporting - Radical Batz - 09-20-2014

(09-20-2014, 09:54 AM)Straxedix Wrote: Can you explain a little bit...What text entry ?? I don't understand

As the amnesia engine scripts say:

asName - the internal name
asStartPos - the name of the StartPos in the editor
asCallback - the function to call when the player dies/respawns
asDeathHintCat - the category of the death hint message to be used in the .lang file
asDeathHintEntry - the entry in the .lang file


RE: Death Teleporting - Straxedix - 09-20-2014

You really gains a lot of reputation :P

Thanks dude +rep for you :D


RE: Death Teleporting - Radical Batz - 09-20-2014

(09-20-2014, 10:06 AM)Straxedix Wrote: You really gains a lot of reputation Tongue

Thanks dude +rep for you Big Grin

So did you try it? Did it work?

I love helping people and correcting their mistakes :p


RE: Death Teleporting - Straxedix - 09-20-2014

It did it works,thank you BTW your 800 post :3 Keep it like that :D


RE: [SOLVED] Death Teleporting - Radical Batz - 09-20-2014

Hahaha, glad I could be of help Wink