Monster Spawner question.

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Monster Spawner question.

Post by Neikun »

How would you go about spawning one monster once and never again out of a monster spawner?
What I want is for the players to turn a lock and a monster appears at the end of the corridor because of it.

I see a parameter for cooldown, but none for one time spawning.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Akatana
Posts: 42
Joined: Tue Apr 10, 2012 11:07 pm

Re: Monster Spawner question.

Post by Akatana »

If the cooldown is 0 the monster just spawns one times :)
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Monster Spawner question.

Post by Neikun »

Oh. Well nifty. Thank you.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
antti
Posts: 688
Joined: Thu Feb 23, 2012 1:43 pm
Location: Espoo, Finland
Contact:

Re: Monster Spawner question.

Post by antti »

Neikun wrote:How would you go about spawning one monster once and never again out of a monster spawner?
What I want is for the players to turn a lock and a monster appears at the end of the corridor because of it.

I see a parameter for cooldown, but none for one time spawning.
The spawner always only spawns once per activation, so you need to take care that it will be activated only once. With some assets, like pressure plates, it's easy since they have the "activate once" parameter but with some other cases you might need to do some scripting.
Akatana wrote:If the cooldown is 0 the monster just spawns one times
Actually no. Setting cooldown to 0 means that there's no limit to spawning speed so if you keep on spamming activations to it, it will try to spawn every time the activation happens. The cooldown parameter is there for preventing overpopulation (if the spawner is activated by, say, a hidden pressure plate that the player might unknowingly trigger a dozen times) and such.

edit: Actually, I suppose you could handle this case by setting the cooldown to a very high number like 100000. Of course it's not foolproof but it probably doesn't need to be.
Steven Seagal of gaming industry
Post Reply