Creating fire by pusing a button

  • Thread starter Thread starter Polishwonder74
  • Start date Start date
P

Polishwonder74

Guest
Hi fellas, I'm just beginning to learn my way aorund Hammer, so I apologize for being such a n00b. I'm trying to make a fire start by pushing a button, then go out by pushing another (kinda like Ravenholm).

I've been looking all over the place for fire tutorials and haven't found very much. What I've got so far is an env_fire, an env_firesource, and the 2 buttons.

I'm trying to enable the firesource by inputting an "enabled" command from the "onpressed" func_button output. I see a bunch of useful-looking flags on both the env_fire and the env_firesource, but no matter what I do, I can't seem to get the button to light the fire. Does anyone know off the top of their head how to get a fire going with a button, or spark, explosion, etc?

Thanks for humoring me! :cheers:
 
How about the env_fire's Enable and Disable inputs? :P
 
Ha! Thats a really good idea for a mp map! Fire Traps! Great for saving ammo, and for bragging rights!

lol
 
poop, that's not working. Does anyone know of a good tutorial concerning starting fires, or know how to do this?
 
Raeven0 should be right in this case, except you want StartFire not Enable :)

First, name your env_fire : fire

Then, select your func_button and press alt+enter. In this, click the outputs tab.

Click add, and then, in the appropriate text boxes, type:

My Output Name: OnPressed
Target Entities Named: fire
Via This Output: StartFire
After A Delay In Seconds Of: 0.20

Make sure the fire is set to Start Enabled aswell.
 
I think if you wanted the fire to start by shooting it, entity? you could go into the outputs and: on change health, target entity: fire ,output: startfire.
 
Back
Top