Pre/PostTeleport virtuals for actors

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Pre/PostTeleport virtuals for actors

Pre/PostTeleport virtuals for actors

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.

Top