How to make a button spawn a prop?

I’m trying to make a spot in my map where when you press a button an explosive barrel spawns on this pedestal every time you press it. I don’t know how to do this and I couldn’t find any tutorials on it, so can anyone help?

EDIT:

My idea’s artistic? O_o

EDIT2:

Keep the artistic ratings coming. I don’t know why, but keep doing it. :stuck_out_tongue:

Lol does noone know?

http://halfwit-2.com/?page=tutorials&id=52
Use that tutorial, just change it to what you want… Basically it tells you how to use a point_template.

Make the explosive oildrum. (prop_physics)
Give it a name. Let’s use BARREL as an example.
Make a point_template.
Give it a name. Let’s use SPAWNER as an example.
Set BARREL as the point_template’s Template 01 keyvalue.
Make a button. (func_button)
These outputs:
OnPressed | SPAWNER | ForceSpawn

Now it should work.

Thanks. I’ll check that out.

[editline]03:17PM[/editline]

[editline]02:27PM[/editline]

ARG I don’t have a func_button!

[editline]03:16PM[/editline]

ARG I don’t have a func_button!

[editline]03:17PM[/editline]

ARG I don’t have a func_button!

make a brush, then select it, on the far right, click move selected to entity, then in the text box type func_button

I figured that out already but thx.