Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help [SOLVED] Death Teleporting
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#11
RE: Death Teleporting

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

09-20-2014, 09:41 AM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#12
RE: Death Teleporting

(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: (Select All)
CheckPoint ("""""changemap""LANGENTRY""ENTRYTEXT"); 

And the checkpoint will call this when dying

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


(This post was last modified: 09-20-2014, 09:49 AM by Radical Batz.)
09-20-2014, 09:47 AM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#13
RE: Death Teleporting

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

09-20-2014, 09:54 AM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#14
RE: Death Teleporting

(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

(This post was last modified: 09-20-2014, 09:58 AM by Radical Batz.)
09-20-2014, 09:55 AM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#15
RE: Death Teleporting

You really gains a lot of reputation :P

Thanks dude +rep for you :D

09-20-2014, 10:06 AM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#16
RE: Death Teleporting

(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

09-20-2014, 10:07 AM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#17
RE: Death Teleporting

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

(This post was last modified: 09-20-2014, 10:09 AM by Straxedix.)
09-20-2014, 10:08 AM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#18
RE: [SOLVED] Death Teleporting

Hahaha, glad I could be of help Wink

09-20-2014, 10:13 AM
Find




Users browsing this thread: 1 Guest(s)