func_useableladder

From Source Entities
Jump to navigation Jump to search

Code classes:

func_useableladder is a point entity present in all Source games. It creates a climbable ladder between two points in space.

Note: This entity is only usable in Hl2.png and P1.png. See here for alternatives.

Tip: The boxes in Hammer represent where the player hull will be located at the very top and bottom of the ladder. Said boxes can be moved independently by dragging the circles inside them in a 2D view.

Bug: In P1.png the ladder will constantly play sounds as if the player is climbing it even while stationary.

Bug: There seems to be a bug where mounting or dismounting a ladder within a trigger volume will cause the trigger to fire outputs as if the player left and re-entered the volume. Requires further investigation.

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
sv_showladders00 disables, 1 enablesShows info about ladders. Requires developer 1 and a new level load before taking effect.

Flags[edit | edit source]

  • 1: Fake Ladder - Cancels all ladder-related movement, but still makes a climbing sound when the player would normally mount the ladder. To do: Purpose...?

Keyvalues[edit | edit source]

Start (point0) <vector>
One end of ladder.
End (point1) <vector>
Other end of ladder.
Surface properties (optional) (ladderSurfaceProperties) <string>
Gives the ladder a custom $surfaceprop. When the player travels on the ladder, they will hear sounds that would normally play when walking on a surface of this type. Bug: The ladder will still play the default mounting sound, though.
Confirm: This keyvalue does work on an online server in Hl2.pngHalf-Life 2: Deathmatch.
Start Disabled (StartDisabled) <boolean>
Stay inactive until Enabled.

Inputs[edit | edit source]

Enable
Makes the entity active.
Disable
Makes the entity inactive.
Confirm: These inputs do work on an online server in Hl2.pngHalf-Life 2: Deathmatch.

Outputs[edit | edit source]

OnPlayerGotOnLadder
Fires when a player gets on the ladder.
OnPlayerGotOffLadder
Fires when a player gets on the ladder.
Confirm: These outputs do work on an online server in Hl2.pngHalf-Life 2: Deathmatch.

See Also[edit | edit source]