Mobs spawning
#24
ok - in contructor there is no reference to cWorld - but in initialize.

i've now tried:

int x = a_ChunkX+10;
int z = a_ChunkZ+10;
int y = cChunkDef::GetHeight(a_HeightMap, x, z)+2;
cMonster * Monster = new cPig();
Monster->SetPosX(x);
Monster->SetPosY(y);
Monster->SetPosZ(z);
a_Entities.push_back( Monster );

it works except setting the position of the Monster (SetPosX) - when i add those then there is an assert
MCServer: source/Entity.cpp:105: void cEntity::MoveToCorrectChunk(bool): Assertion `0' failed.
Abgebrochen (Speicherabzug geschrieben)

how to i set the position of the entity without cWorld ?

Reply
Thanks given by:


Messages In This Thread
Mobs spawning - by steven2612 - 11-19-2012, 11:56 AM
RE: Mobs spawning - by xoft - 11-19-2012, 04:33 PM
RE: Mobs spawning - by steven2612 - 11-19-2012, 11:40 PM
RE: Mobs spawning - by xoft - 11-20-2012, 12:38 AM
RE: Mobs spawning - by steven2612 - 11-20-2012, 01:06 AM
RE: Mobs spawning - by xoft - 11-20-2012, 01:23 AM
RE: Mobs spawning - by steven2612 - 11-20-2012, 01:26 AM
RE: Mobs spawning - by xoft - 11-20-2012, 02:31 AM
RE: Mobs spawning - by steven2612 - 11-20-2012, 11:20 AM
RE: Mobs spawning - by xoft - 11-20-2012, 07:15 PM
RE: Mobs spawning - by steven2612 - 11-20-2012, 08:24 PM
RE: Mobs spawning - by ThuGie - 11-20-2012, 08:59 PM
RE: Mobs spawning - by steven2612 - 11-20-2012, 09:02 PM
RE: Mobs spawning - by FakeTruth - 11-20-2012, 09:03 PM
RE: Mobs spawning - by steven2612 - 11-22-2012, 10:54 PM
RE: Mobs spawning - by xoft - 11-22-2012, 11:52 PM
RE: Mobs spawning - by steven2612 - 11-23-2012, 12:03 AM
RE: Mobs spawning - by xoft - 11-23-2012, 12:25 AM
RE: Mobs spawning - by steven2612 - 11-23-2012, 12:56 AM
RE: Mobs spawning - by steven2612 - 11-24-2012, 11:20 PM
RE: Mobs spawning - by xoft - 11-24-2012, 11:27 PM
RE: Mobs spawning - by FakeTruth - 11-25-2012, 12:00 AM
RE: Mobs spawning - by steven2612 - 11-24-2012, 11:41 PM
RE: Mobs spawning - by steven2612 - 11-25-2012, 12:47 AM
RE: Mobs spawning - by xoft - 11-25-2012, 06:55 AM
RE: Mobs spawning - by steven2612 - 11-25-2012, 08:26 AM
RE: Mobs spawning - by steven2612 - 11-25-2012, 01:49 PM
RE: Mobs spawning - by xoft - 11-25-2012, 06:46 PM
RE: Mobs spawning - by steven2612 - 11-25-2012, 10:45 PM
RE: Mobs spawning - by steven2612 - 12-02-2012, 09:54 AM



Users browsing this thread: 5 Guest(s)