11-25-2012, 08:26 AM
(This post was last modified: 11-25-2012, 01:47 PM by steven2612.)
ok, i tried:
void cEntity::SetPosition( const double & a_PosX, const double & a_PosY, const double & a_PosZ )
{
m_Pos.Set( a_PosX, a_PosY, a_PosZ );
if (m_World!=NULL) {
MoveToCorrectChunk();
}
m_bDirtyPosition = true;
}
now it compiles fine - but no mobs are created - maybe noone issued the initialize funktion ? The contructor is executed.
void cEntity::SetPosition( const double & a_PosX, const double & a_PosY, const double & a_PosZ )
{
m_Pos.Set( a_PosX, a_PosY, a_PosZ );
if (m_World!=NULL) {
MoveToCorrectChunk();
}
m_bDirtyPosition = true;
}
now it compiles fine - but no mobs are created - maybe noone issued the initialize funktion ? The contructor is executed.