Tutorials

Falling Utility Pole



This tutorial will teach you how to make a utility pole fall to the ground. Everything will be triggerd with a trigger_once entity and it’s very simple. I’ve devided this tutorial into 3 steps, so just follow them, and everything will work out fine.

Step:1

Start off by selecting the Entity Tool (Shift + E) and place a prop_physics_override somewhere in your map, (you can adjust the location afterwards).

In the Object Properties dialog box, select the keyvalue named: World Model and copy and paste this into that keyvalue: models/props_c17/utilitypole01a.mdl
Now, give the object a name, anything you want. I would suggest: Pole01. You don’t have to change any other keyvalues! Now it’s time to hit the Apply button.

news post image


These are the Flags for the utility pole:

news post image

Motion Disabled: Checked

Prevent Pickup: Checked

All the other flags are: Unchecked

news post image

Make sure the utility pole DOESN’T touch the ground! Not even the purple overlay!

Step: 2

Select the Block Tool (Shift + B) and make a brush with the texture: tools/toolstrigger

news post image

Now select the brush you’ve just made with the Selection Tool (Shift + S) and press Ctrl + T. An Object Properties dialog box will appear and as class, select trigger_push and klick on the Apply button.
The trigger_push entity will push our utility pole in the direction we want.
Adjust the location of the trigger_push entity and place it like the picture is showing:

news post image

These are the settings for the trigger_push:

Name: Trigger_push01
Start Disabled: Yes
Push Direction: Depends on which direction you want the utility pole to fall in
Speed of Push: 50

These are the Flags for the trigger_push:

Once Only: Checked

Physics Objects: Checked

All the other flags are: Unchecked


Step: 3

Select the Block Tool (Shift + B) and make a brush with the texture: tools/toolstrigger
Now select the brush you’ve just made with the Selection Tool (Shift + S) and press Ctrl + T. An Object Properties dialog box will appear and as class, select trigger_once. You don’t have to change any keyvalues or Flags!

news post image

Place the trigger_once entity where you want it to be and select the Outputs tab. Klick the Add button and make these settings:

news post image

You now have a falling utility pole which will only fall, when the player triggers the trigger_once entity.


Step: 4 (Optional)

Select the Entity Tool (Shift + E) and place a env_explosion, behind and at the top of the utility pole.

These are the settings for the env_explosion:

Name: Exp01

These are the Flags for the env_explosion:

No Damage: Checked

Select the env_explosion and hold down Shift and drag the env_explosion to a new place with the left mouse button. Release the mouse button, still holding down Shift, and you have a clone of your explosion. Do this a couple of times and place the explosions around and at the top of the utility pole.

news post image

Select the trigger_once entity and select the Outputs tab. Press the Add button and make this new setting:


OnStartTouch - - - > Exp01 - - - > Explode - - - > Delay: 0.00 - - -> Once Only: Yes

news post image

When the player triggers the trigger_once entity, there will be explosions. It will look like it was the explosions that made the utility pole to fall!

There’s a lot more you can do, I hope I’ve stimulated your imagination!

- Tranced_Psycho

View comments ( 4 )

Back to top