by Marisa the Magician » 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.
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 [url=https://github.com/coelckers/gzdoom/pull/1173]here[/url].