Pre/PostTeleport virtuals for actors

Moderator: GZDoom Developers

User avatar
Marisa the Magician
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

Pre/PostTeleport virtuals for actors

Post by Marisa the Magician »

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.

Return to “Closed Feature Suggestions [GZDoom]”