Dynamic monster spawn
by Steve Howson · in Torque Game Engine · 11/15/2006 (11:52 am) · 6 replies
Hi all!
I'm looking for a way to dynamically spawn "monsters" at random times.
What I'm looking to do is something similar to GTA, Driv3r, Scarface, etc... where when you walk around a city or street area, there are other "people" walking as well.
I tried searching but couldn't find anything, it could be that I'm using the wrong search parameters.
If anyone has any info, please let me know.
Thanks.
Oh, Also if I wanted them to walk down a sidewalk or something, would I just set up a path on the sidewalk and dynamically attach them to the path once they spawn?
Thanks.
I'm looking for a way to dynamically spawn "monsters" at random times.
What I'm looking to do is something similar to GTA, Driv3r, Scarface, etc... where when you walk around a city or street area, there are other "people" walking as well.
I tried searching but couldn't find anything, it could be that I'm using the wrong search parameters.
If anyone has any info, please let me know.
Thanks.
Oh, Also if I wanted them to walk down a sidewalk or something, would I just set up a path on the sidewalk and dynamically attach them to the path once they spawn?
Thanks.
#2
11/15/2006 (10:11 pm)
Thanks a lot, I appreciate it!
#3
11/16/2006 (7:48 am)
Np, hope it helps
#4
In this class we keep a simset that keeps track of how many mobs the spawner presently has track of.
Then every few seconds to few minutes we have a self scheduling timer that loops through and fills the spawntracker up to it's quota.
It's a great way to handle yard trash like spiders, snakes, wolves etc, that need to be killed frequently since they wander into the village and cause a ruckus.
I'll probably make this it's own resource if there is interest since it could effectively stand alone.
Regards,
Dreamer
11/16/2006 (9:12 am)
In the MMOKit, we created a type of SpawnSphere, and tied to to a class called AISpawnerIn this class we keep a simset that keeps track of how many mobs the spawner presently has track of.
Then every few seconds to few minutes we have a self scheduling timer that loops through and fills the spawntracker up to it's quota.
It's a great way to handle yard trash like spiders, snakes, wolves etc, that need to be killed frequently since they wander into the village and cause a ruckus.
I'll probably make this it's own resource if there is interest since it could effectively stand alone.
Regards,
Dreamer
#5
11/16/2006 (9:32 am)
@Dreamer: I would like to see that resource. That is what I have been trying to do with a very high failure rate.
Torque 3D Owner mb
heres a thread that might help: www.garagegames.com/mg/forums/result.thread.php?qt=32546
and a resource: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9584