PigPen-divinity
Sorceror
I am trying to script a NPC Quest Giver who (after OnThink) will spawn an XmlSpawner that spawns six orcs and respawns them after death every 10 seconds.
Here is the script snip:
The script compiles and the NPC creates the XmlSpawner but the spawner will not work the way I want.
First - The spawner only spawns 1 Orc (The spawner Count says 1 but the Max shows 6). If I do a manual Respawn on the spawner all 6 Orcs will then appear. I do not know how to get the spawner to make all 6 orcs appear at the outset. Conversely I do not know how to make the spawner do a Respawn from inside the script.
Second - The spawner shows the Min delay and the Max delay as one minute. If I try changing my script to XmlSpawner(6, .01, .01, 0, 12, "Orc"); it will not compile as the format accepts only Int not Double.
Does anyone know the proper syntax to make my script spawn the six Orcs at the outset and have the Min/Max delays less than one minute?
I really appreciate any help I can get on this.
Many Thanks
Here is the script snip:
Code:
//**********************************************
// Spawn an XMLSpawner and Set Spawn Properties
es_Spawner = new XmlSpawner(6, 1, 1, 0, 12, "Orc");
es_Spawner.Name = "EventSpawner";
es_Spawner.Map = Map.Trammel;
es_Spawner.MoveToWorld(new Point3D( 5635, 1263, 0 ));
//**********************************************
The script compiles and the NPC creates the XmlSpawner but the spawner will not work the way I want.
First - The spawner only spawns 1 Orc (The spawner Count says 1 but the Max shows 6). If I do a manual Respawn on the spawner all 6 Orcs will then appear. I do not know how to get the spawner to make all 6 orcs appear at the outset. Conversely I do not know how to make the spawner do a Respawn from inside the script.
Second - The spawner shows the Min delay and the Max delay as one minute. If I try changing my script to XmlSpawner(6, .01, .01, 0, 12, "Orc"); it will not compile as the format accepts only Int not Double.
Does anyone know the proper syntax to make my script spawn the six Orcs at the outset and have the Min/Max delays less than one minute?
I really appreciate any help I can get on this.
Many Thanks