Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Editing func plat

From Quake Wiki

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{DISPLAYTITLE:func_plat}}
+
Temporary, since this page didn't exist:
  
{{Infobox_entity
+
<code>
| classname = func_plat
+
/*QUAKED func_plat (0 .5 .8) ? PLAT_LOW_TRIGGER
| type = brush
+
speed default 150
| class = [[Func (entity class)|func]]
 
| quakec = [[plats.qc]]
 
| precaches =
 
'''plats/plat1.wav'''<br>
 
'''plats/plat2.wav'''<br>
 
'''plats/medplat1.wav'''<br>
 
'''plats/medplat2.wav'''
 
}}
 
  
The '''func_plat''' is a moving brush entity commonly used for elevator creation.
+
Plats are always drawn in the extended position, so they will light correctly.
  
== Usage ==
+
If the plat is the target of another trigger or button, it will start out disabled in the  extended position until it is trigger, when it will lower and become a normal plat.
'''func_plat'''s 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.
+
If the "height" key is set, that will determine the amount the plat moves, instead of being  implicitly determined by the model's height.
 
+
Set "sounds" to one of the following:
== Attributes ==
+
1) base fast
If the ''height'' field is not set, it calculates it based on the '''func_plat''''s vertical size.
+
2) chain slow
Keep in mind '''func_plat'''s are created already at their target position when setting ''height''.
+
*/
 
+
</code>
=== Keys ===
 
{| class="wikitable" width="100%"
 
|-
 
| ! bgcolor="#eeeeee" width="100px" | ''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'''.
 
|-
 
| ! bgcolor="#eeeeee" | ''target''
 
| ''[TODO: When does the platform trigger?]''
 
|-
 
| ! bgcolor="#eeeeee" | ''height''
 
| The vertical distance the '''func_plat''' moves.
 
|-
 
| ! bgcolor="#eeeeee" | ''speed''
 
| The speed at which the '''func_plat''' moves.
 
|-
 
| ! bgcolor="#eeeeee" | ''sounds''
 
| The sound the '''func_plat''' makes while moving.<br>
 
Multiple choices:<br>
 
0. "None"<br>
 
1. "Base fast"<br>
 
2. "Chain slow"
 
|}
 
 
 
===Spawnflags===
 
The entity_name entity supports the following [[Entity#Spawnflags|spawnflags]]:
 
{| class="wikitable" width="100%"
 
! width="50" | Flag
 
! width="150" | Common Name
 
! Description
 
|-
 
| flag 1
 
| Low trigger volume
 
| ''[TODO: What does this do?]''
 
|}
 
 
 
It also supports the standard spawnflags for difficulty and deathmatch presence.
 
{{Template:Mode_spawnflags
 
| entity = The '''func_plat'''
 
}}
 
 
 
==Definitions==
 
 
 
===FGD Definition===
 
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.
 
<pre>
 
@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"
 
]
 
]
 
</pre>
 
===DEF Definition===
 
This is the definition format used for most old Quake editors, including the original [[QuakeEd]].
 
<pre>
 
[ code from entity entry in a .def file goes in here ]
 
</pre>
 
 
 
[[Category:Quake entities]]
 

Please note that all contributions to Quake Wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see Quake Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Templates used on this page: