11-24-2012, 11:20 PM
(This post was last modified: 11-24-2012, 11:26 PM by steven2612.)
hm .. i looked into the finisher .. i didn't find an example where entities are generated. so i am quite unshure how to generate them.
in world.cpp there is a spawnmob function - but can/should i use this in a finisher ?
Also it's not clear yet (to me) if it needs to do a "Monster = new cSpider();" or simply generate an Entity for the AI?
I'm digging in the source .. but if someone has a hint for me it would speed things up ...
ok
if each finisher ist: cEntityList & a_Entities
when i'm right - i 've to create e new entity with for example new cSpider - then add this to a_Entities. Is this only for the actual Chunk or for the whole world ?
For example if i generate a bulk of Mobs - have i to look that every one is within the actual chunk, or could they spawn in the surroundings chunks too ?
in world.cpp there is a spawnmob function - but can/should i use this in a finisher ?
Also it's not clear yet (to me) if it needs to do a "Monster = new cSpider();" or simply generate an Entity for the AI?
I'm digging in the source .. but if someone has a hint for me it would speed things up ...
ok
if each finisher ist: cEntityList & a_Entities
when i'm right - i 've to create e new entity with for example new cSpider - then add this to a_Entities. Is this only for the actual Chunk or for the whole world ?
For example if i generate a bulk of Mobs - have i to look that every one is within the actual chunk, or could they spawn in the surroundings chunks too ?