Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
func_plat
From Quake Wiki
func_plat | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
The func_plat is a moving brush entity commonly used for elevator creation.
Contents
Usage[edit]
func_plats are created in their "extended" position (for lighting calculation purposes).
When the player stands on top of a func_plat, it starts moving vertically to a set height.
Attributes[edit]
If the height field is not set, it calculates it based on the func_plat's vertical size. Keep in mind func_plats are created already at their target position when setting height.
Keys[edit]
targetname | | The targetname of the Entity. If targeted, the func_plat will spawn in the extended position, and return to it's starting position when triggered and become a normal func_plat. |
target | [TODO: When does the platform trigger?] |
height | The vertical distance the func_plat moves. |
speed | The speed at which the func_plat moves. |
sounds | The sound the func_plat makes while moving. Multiple choices: |
Spawnflags[edit]
The entity_name entity supports the following spawnflags:
Flag | Common Name | Description |
---|---|---|
flag 1 | Low trigger volume | [TODO: What does this do?] |
It also supports the standard spawnflags for difficulty and deathmatch presence.
Flag | Common Name | Description |
---|---|---|
256 | Not on Easy | The func_plat will not spawn on Easy difficulty. |
512 | Not on Normal | The func_plat will not spawn on Normal difficulty. |
1024 | Not on Hard | The func_plat will not spawn on Hard difficulty. |
2048 | Not in Deathmatch | The func_plat will not spawn in Deathmatch mode. |
Definitions[edit]
FGD Definition[edit]
This is the format used by TrenchBroom and Worldcraft. Note that the model(...) parameter is not supported by Worldcraft. This does not include the base class definition, which may also be required.
@SolidClass base(Appearflags, Targetname) = func_plat : "Elevator" [ spawnflags(Flags) = [ 1 : "Low trigger volume" : 0 ] speed(integer) : "Speed" : 150 height(integer) : "Travel altitude (can be negative)" : 0 sounds(choices) : "Sound" : 1 = [ 0: "None" 1: "Base fast" 2: "Chain Slow" ] ]
DEF Definition[edit]
This is the definition format used for most old Quake editors, including the original QuakeEd.
[ code from entity entry in a .def file goes in here ]