[DIY] Can use Teleport_NewMap after death

Moderator: GZDoom Developers

Can use Teleport_NewMap after death

Postby SPZ1 » Sun Jul 25, 2021 5:32 pm

I wanted to do a Teleport_NewMap after death from a script library so it could easily be used on every level.
User avatar
SPZ1
 
Joined: 02 Aug 2017
Location: Illinois

Re: Can use Teleport_NewMap after death

Postby Logan MTM » Sun Jul 25, 2021 5:58 pm

Sure you can, by so many ways!
Code: Select allExpand view
Script "TesteDeath" DEATH
{
Delay(70);
ChangeLevel("Map02", 0, CHANGELEVEL_NOINTERMISSION, -1);
}

This code Teleport You to Map02 after dies! However, i think you need a more complex script for that. Some (ACS) Int Global variable to set the Map to go when you die works better with ACS_NamedExecute Decorate Death State.
User avatar
Logan MTM
I can see you...
 
Joined: 16 Jan 2006
Location: Rio de Janeiro - Brazil

Re: Can use Teleport_NewMap after death

Postby SPZ1 » Mon Jul 26, 2021 7:02 am

This works splendidly, Thank You !!
User avatar
SPZ1
 
Joined: 02 Aug 2017
Location: Illinois


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest