Digital Paint Discussion Board

Development => Mapping => Topic started by: musickid999 on August 28, 2008, 02:56:11 PM

Title: Spawning certain items
Post by: musickid999 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
Title: Re: Spawning certain items
Post by: Eiii on August 28, 2008, 03:34:48 PM
Nope.
Title: Re: Spawning certain items
Post by: Laged 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.
Title: Re: Spawning certain items
Post by: Eiii 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.
Title: Re: Spawning certain items
Post by: Laged 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.
Title: Re: Spawning certain items
Post by: M-A-Zing on August 28, 2008, 08:48:24 PM
Key:  "type"

Value:  "200"
Title: Re: Spawning certain items
Post by: Eiii 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.
Title: Re: Spawning certain items
Post by: musickid999 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
Title: Re: Spawning certain items
Post by: jitspoe 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.