[ZScript] On(Un)Morph Virtual Function
Posted: Wed Dec 21, 2016 10:47 am
Two virtual functions called whenever an (un)morph happens. Has two different cases for both of these based on if the actor to change from and the actor to change into.
I.e. a marine turns into a mega chicken.
Marine:
I.e. a marine turns into a mega chicken.
Marine:
- Calls OnMorph before changing into the morph.
- Calls OnUnmorph after returning to the player self.
- Calls OnMorph just after switching bodies.
- Calls OnUnmorph just before switching bodies.