Posted by Stealth on January 07, 1998 at 09:21:13:
In Reply to: To CogKing or anyone.About adding enemies in MP posted by Matrix on January 06, 1998 at 22:24:51:
> I didn't know where to start with putting an enemy in MP because they didn't show up in MP.
> So CogKing suggested that I use the 00_generator.cog in some way to create the enemies.
> I loaded a level that I had seen the enemies in MP before and am a bit confused.
> I go to PLACED COGS in this level and see that there are 00_generator.cog's.My question
> what do these values mean?
> generator_pos - should be a "vector" (x,y,z)(three flex values) thing position to create thing at i beleive (haven`t looked) You can use GetThingPos(thing) to get a position.And offset that with one of the vector functions if you want
> enemy_tpl -a template name like +stormtroop for example(the thing to create)
> initial_delay - i think it`s the time before the generator starts to work
> generate_delay - time delay between creating each thing
> generate_num - how many to create (generate)
> max_alive - how many can be alive at once before generating another
> min_dist - how close can the player be to the generator before it stops generating(looks stupid if player standing right beside the new enemey as it is created) :-)
> max distance - how far away player can be before it stops generating (same thing if the player has gone to some far away place in the level no point in still creating) (there is also a maximum of 640 things that can be in your level at once) it simply stops making more things if you get to this amount until some are killed off.
I`m not sure off hand what the flags should be , look in a level where it was used.