I would like to make a spawn on a map from the source, but I can not seem to do so: s
My code :
balala.cpp
baalal.h
I would like there was 20 monster spawn
I need help :)
Soory for my bad English :s , I'am french
My code :
balala.cpp
Code:
void CChallengeMng::Spawnmob( void )
{
CMover* pMover = (CMover*)CreateObj( D3DDEVICE, OT_MOVER, MI_AIBATT1 );
pMover->SetPos( D3DXVECTOR3(1296, 100, 1228) );
pMover->InitMotion( MTI_STAND );
pMover->UpdateLocalMatrix();
CWorld* pWorld = g_WorldMng.GetWorld( WI_WORLD_CHALLENGE );
if( pWorld )
pWorld->ADDOBJ( pMover, TRUE, nDefaultLayer );
}
baalal.h
Code:
void Spawnmob( void );
I would like there was 20 monster spawn
I need help :)
Soory for my bad English :s , I'am french