Ok.
Thing_Count cannot be used in this case because AFAIK the Blood Demon Clone doesn't have a Spawn number. So your int d will allways be 0.
Wiki wrote:Spawn numbers are the numbers used by specials such as Thing_Spawn to spawn actors in the game once the user has started playing the map. Although DoomEd numbers and spawn numbers both describe actors, they are not interchangeableyou must not use a spawn number on a map thing, and you must not use a DoomEd number for instance as a Thing_Spawn parameter.
However, we can work around this. I'm now assuming you want to create 30 Blood Demons: This code should work.
Code: Select all
{
for (int i = 0 ;i< 30;i++)
{
SpawnSpot ("BloodDemonClone", 55, 50, 0);
Thing_Hate (50, 49, 6);
Delay(80);
}
}
55 being the MapSpot thing tag, 50 being the Demon's thing tag and 0 being the angle.
The problem with your spawning code was that you were using the Blood Demon's DoomEd number instead of its class name.
I originally said you should use Thing_Spawn, however I was mistaken as that too requires a spawn number.