[Added] Pre/PostTeleport virtuals for actors

Moderator: GZDoom Developers

Pre/PostTeleport virtuals for actors

Postby Marisa Kirisame » Wed Sep 02, 2020 3:49 am

I swear this isn't something I ripped straight out of Unreal Engine again (well actually it is, kinda, it's just implemented differently).

During actor teleport, PreTeleport is first called, and if it returns false, the move is cancelled early. PostTeleport is called at the very end if the move succeeded. I figured some people other than myself would find these very useful.

Pull request here.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: Marisa Kirisame and 0 guests