Weird..
When i do 2 times without the if 2 pickup i get a error.
Edit:
Like this i get a error also when i only do once pickup->init
Also not actually dropping the spider eye just a sample.
When i do 2 times without the if 2 pickup i get a error.
Edit:
Code:
void cCavespider::KilledBy( cEntity* a_Killer )
{
//0 to 1 spider eye - 1.9 pre2
cPickup* Pickup = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_SPIDER_EYE, (rand() % 1) ) );
Pickup->Initialize( GetWorld() );
//0 to 2 string.
cPickup* Pickup = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_STRING, (rand() % 3) ) );
Pickup->Initialize( GetWorld() );
cMonster::KilledBy( a_Killer );
}
Also not actually dropping the spider eye just a sample.