Back to the Vavoom Forum Archives


Forum

a very stupid question =)

Sun, 07 May 2006 11:38:32

Crimson Wizard

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: --> And anyway, what happens, if I change 'mo' during game? For example, to some enemy, or even non-creature (pot, tree etc)? just being very curious, you see... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Mon, 08 May 2006 12:18:49

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.

Back to the Vavoom Forum Archives