View Full Version : Crowd stops spawning
12-16-2009, 02:23 AM
I set up a crowd simulation and have set it to "Respawn Dead Agents" but eventually it stops spawning them. I set the # of spawns to 1 and counted about 20 respawns and I set the # to 2 spawns at a time and counted 30 respawns one time and 36 another time and 32 another time.
I noticed this when I spawned 500 agents at once and decide to kill them over and over and I noticed the crowd getting thinner and thinner until I eventually killed them all.
Is this a bug or is there a way to set the agents to respawn forever with no limits? I know I can kill them when they reach a certain path point, but I decided to have them loop back to the beginning in a basic circle so that it was me doing all the killing.
12-16-2009, 02:31 AM
I just started working with crowds myself. I've noticed a few things. Make sure the spawning GameCrowdDestination is not right up against a wall that might cause some spawns to appear on the other side or fall though the world. There is a setting in the UT Crowd Spawner in Kismet called 'Only Spawn Hidden?' make sure that is off so you can actually watch the spawning directly (seems like you have that off already though).
How long is the path they are following? I have a maze setup and it seems that they just stop if I'm not watching them. So if I let them by and can't see the last destination that kills them to respawn. They won't ever reach it.
On your actual question though, it seems that they do spawn agents forever, there are just a dozen little things that might cause it so they don't appear to respawn correctly.
12-16-2009, 11:37 AM
Yeah, I thought it might be that they spawn outside, but I moved the spawn point into the middel of the room and set the radius to really low. I also moved it up so they spawn and drop out from it instead of possibly spawning under the ground. If I let them reach the goal and have them die there, they appear to respawn forever. It's when I kill them myself that the appear to only spawn between 10 and 15 times each. I can't find any settings in there that would alter this.
I have another question because I'm a real newb here myself, but how do I give them guns and have them break off to attack me and not each other?
I also noticed that if I put a brush right in their path, they can only get over it if it's really low and they pass almost all the way through it before jumping. If I raise the height so it's really large, they don't go around it, rather they pass into the block and then disappear and don't respawn. Some of them fall through the ground, but most just poof. I tried checking "obstacle checking" on both the crowd and the agent and those both result in all of the bots spawning and running in the opposite direction, through the wall and either disappearing or falling through the world. Do we actually have to set all of the paths and if not, how can we ensure they can traverse the navmesh?
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.