I'm not sure how this is done in the current Zscript. Is it yet possible to spawn enemies?
Spawning Enemies
Yes. Use CreateNPC() to make a new enemy, then set the attributes of the resulting npcs like you would an item or FFC. Look in the ZScript documentation for details.
Also, I believe there's a topic in beta discussion where DN laid out the entire enemy definitions and constants, which should help in determining how you want to construct the enemy.
Yes, but when will setting NPC variables be implemented?
_L_, it should be working in b15. Is it not?
CreateNPC isn't working now. At least, the syntax isn't obvious.
This doesn't compile:
npc spawned_enemy = CreateNPC(enemy_id);
spawned_enemy->X = this->X
spawned_enemy->Y = this->Y
Compiler doesn't like the first line, says I need an identifier.
Yes, the NPC commands will be new in b15; I was pretty sure I'd added them before I left.