Back to the Vavoom Forum Archives
Crimson Wizard
Janis Legzdinsh
I noticed, that BasePlayer's 'mo' member is now not Actor but Entity class. What happens, if Player will get non-Actor class object as 'mo'? <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->Currently Actor is the only class that inherits directly from Entity.
And anyway, what happens, if I change 'mo' during game? For example, to some enemy, or even non-creature (pot, tree etc)?As OpenGL specification sometimes says: "The results are undefined". <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Seriously engine doesn't care, but it probably will crash, since many places expects it to be a PlayerPawn.