Author Topic: Spawning certain items  (Read 2034 times)

musickid999

  • 68 Carbine
  • Posts: 498
Spawning certain items
« on: August 28, 2008, 02:56:11 PM »
I have a func_spawn question.
Let's say i made a button to spawn ammo.
Is there a way i can make it to specifically spawn only ammo boxes of 200?
I'm just using ammo as an example

Eiii

  • Autococker
  • Posts: 4595
Re: Spawning certain items
« Reply #1 on: August 28, 2008, 03:34:48 PM »
Nope.

Laged

  • 68 Carbine
  • Posts: 374
Re: Spawning certain items
« Reply #2 on: August 28, 2008, 03:37:33 PM »
Hmh, I think he means if it's possible to spawn for example an autococker or a steel barrel or if it just spawns a random item.

Eiii

  • Autococker
  • Posts: 4595
Re: Spawning certain items
« Reply #3 on: August 28, 2008, 03:45:56 PM »
Right. It's not, from what I've tried. You can spawn a weapon, but it'll always be a random weapon. You can spawn a hopper, but it'll be a random hopper.

Laged

  • 68 Carbine
  • Posts: 374
Re: Spawning certain items
« Reply #4 on: August 28, 2008, 03:49:39 PM »
Uhm, I thought there was a way to spawn the gun/ammo/hopper/gas you want, I just don't remember how to do it.
I might as well be wrong.

M-A-Zing

  • 68 Carbine
  • Posts: 274
Re: Spawning certain items
« Reply #5 on: August 28, 2008, 08:48:24 PM »
Key:  "type"

Value:  "200"

Eiii

  • Autococker
  • Posts: 4595
Re: Spawning certain items
« Reply #6 on: August 28, 2008, 09:27:36 PM »
That works fine for the hopper entity itself, but I don't think it works on a func_spawner.

EDIT: trigger_spawner, sorry. And I just tested it, and you can only control the type of entity you spawn. None of the properties.

musickid999

  • 68 Carbine
  • Posts: 498
Re: Spawning certain items
« Reply #7 on: August 29, 2008, 04:43:22 AM »
ah well, i guess it'll have to do, i had this amazing idea for a fun map, with an armory that spawns whatever weapon you want LOL
guess i'll have to change my plans, thanks for the help people

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Spawning certain items
« Reply #8 on: August 29, 2008, 09:53:13 PM »
Be careful with spawners, as it's possible to cause overflows by spawning excessive amounts of equipment.