explosion tut
Welcome to another one of my mapping tutorials. In this tutorial, I will be teaching you how to create an explosion by pressing a button.
Creating explosions is a very simple task and only takes the use of 2 entities: env_explosion and a func_button.
Let's get Started!
Start off by opening your map, or just quickly creating a new one for the purpose of this tutorial.
Now, using the entity tool (Shift+E) select the entity env_explosion from the drop-down list and place it in your map wherever you want the explosion to occur.
Now, select the entity and open up its properties menu (Alt+Enter) and give the entity a name like explode1.
If you want, you can change the other settings to your liking, but in this tutorial, I will be leaving them as the default settings because they'll work fine like that.
Now, an explosion must always be triggered, it doesn't really matter what kind of trigger you use, but for this tutorial, we will be using a func_button.
So, go ahead and create 2 brushes: One with a regular button texture, and another with the tools/toolsnodraw texture. Place the Nodraw brush in front of the brush with the button texture.
Select the nodraw brush you just created, and tie it to an entity by pressing Ctrl+T. Select func_button from the drop-down list and press Apply.
Now, open the properties menu for the func_button and head over to the Flags tab and Check the flag Don't Move
Now, head over to the Outputs tab and add a new Output with the following settings:
MyOutputNamed: OnPressed
Targets Entities Named: explode1
Via This Input: Explode
Press Apply and you're done! Place in some Spawn points, compile and go test out your new button activated Explosion!
- 0