Can use Teleport_NewMap after death

Moderator: GZDoom Developers

User avatar
SPZ1
Posts: 311
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Can use Teleport_NewMap after death

Post by SPZ1 »

I wanted to do a Teleport_NewMap after death from a script library so it could easily be used on every level.
User avatar
Logan MTM
Posts: 678
Joined: Mon Jan 16, 2006 8:53 pm
Location: Rio de Janeiro - Brazil

Re: Can use Teleport_NewMap after death

Post by Logan MTM »

Sure you can, by so many ways!

Code: Select all

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
SPZ1
Posts: 311
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Re: Can use Teleport_NewMap after death

Post by SPZ1 »

This works splendidly, Thank You !!

Return to “Closed Feature Suggestions [GZDoom]”