Allows players and items to perform special clean up before a level transition.
Pull request with more information and example here.
PreTravelled virtual
Moderator: GZDoom Developers
-
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
-
- Posts: 1987
- Joined: Mon Aug 11, 2003 1:50 pm
- Location: Waveney, United Kingdom
Re: PreTravelled virtual
While very pleased to see this, I suggested it a while back and it was 'no'd':
Does anyone know what has changed that it's been added now?Graf Zahl wrote:As actor virtuals this is a clear 'no', this stuff makes more sense as an event.
-
-
- Posts: 17777
- Joined: Fri Jul 06, 2007 3:22 pm
Re: PreTravelled virtual
I suppose the biggest change was that here the implementation work was already done and all Graf had to do was click on one single button to merge.
-
- Lead GZDoom+Raze Developer
- Posts: 48658
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: PreTravelled virtual
Gotcha! 

-
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
Re: PreTravelled virtual
I mean, it was dead simple (heh) to implement, and entirely on the zscript side too. Plus doing it right there puts less burden on the event handler and lets players/items clean their own messes.
-
- Posts: 1987
- Joined: Mon Aug 11, 2003 1:50 pm
- Location: Waveney, United Kingdom
Re: PreTravelled virtual
Well thanks, this will mean the cats of chaos code for following the player around during the game can be massively simplified. I'll have a look at the example and see how it works and can be used. 
