Plats

Plats

Classname: func_plat
Purpose: Elevators
H2 Code: plats.hc
Pretty much as in Quake, it would appear. In the map-editor, draw them in in their `up' position; then they will normally first be displayed in their `down' position, which is shifted down from the `up' position by their total height (all owned brushes, e.g. a platform to stand on and some sort of supporting pole) - 8 units, or by their height field, if this is specified. Then they rise to `up' when stood upon.

Fields

speed Value is a number, which overrides the default 150 speed.
height Value is a number, which overrides default distance from `up' (map) to `down' position (i.e. how far down from its map position the plat appears in the game).
soundtype Value is a number:
  • 1 - pulley
  • 2 - chain (default)
targetname Value is a name, target value of remote trigger, such as a button. Targetted plats start in their up position, then lower and become normal when triggered.

Note:

There's supposed to be a spawnflag 1 = START_LOW_TRIGGER, causing triggered plats to start in the low position, but this doesn't work for me.
Back to the list.