Func elevator: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(-concise page) |
||
Line 13: | Line 13: | ||
{{KV|Sound played when the elevator is disabled.|intn=disablesound|sound}} | {{KV|Sound played when the elevator is disabled.|intn=disablesound|sound}} | ||
{{KV Targetname}} | {{KV Targetname}} | ||
== Inputs == | == Inputs == | ||
Line 21: | Line 18: | ||
{{IO|Disable|Stops the elevator and prevents it from moving again.}} | {{IO|Disable|Stops the elevator and prevents it from moving again.}} | ||
{{IO|SetMaxSpeed|Set the max speed of the elevator.|param=float}} | {{IO|SetMaxSpeed|Set the max speed of the elevator.|param=float}} | ||
== Outputs == | == Outputs == | ||
{{IO|OnReachedTop|Fired when the brush reaches the top.|param=string}} | {{IO|OnReachedTop|Fired when the brush reaches the top.|param=string}} | ||
{{IO|OnReachedBottom|Fired when the brush reaches the bottom.|param=string}} | {{IO|OnReachedBottom|Fired when the brush reaches the bottom.|param=string}} | ||
==See also== | ==See also== | ||
*[[info_elevator_floor]] | *[[info_elevator_floor]] |
Revision as of 20:16, 26 October 2022
Template:L4d series brush It is an elevator that moves vertically.
Example map: sdk_content\mapsrc\No Mercy\l4d_hospital04_interior.vmf
.
Keyvalues
- Top floor position (top) <vector>
- The position of this brush while at the top floor.
- Bottom floor position (bottom) <vector>
- The position of this brush while at the bottom floor.
- Speed (speed) <integer>
- The speed that the elevator moves, in inches per second.
- Acceleration (acceleration) <integer>
- The acceleration at which the elevator approaches its target speed, in inches per second per second.
- Block Damage (blockdamage) <float>
- The amount of damage to do to any entity that blocks the elevator, per frame.
- Sound played when the elevator starts moving. (startsound) <sound>
- Sound played when the elevator stops moving. (stopsound) <sound>
- Sound played when the elevator is disabled. (disablesound) <sound>
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- MoveToFloor <string >
- Start the elevator moving to the specified floor.
- Disable
- Stops the elevator and prevents it from moving again.
- SetMaxSpeed <float >
- Set the max speed of the elevator.
Outputs
- OnReachedTop <string >
- Fired when the brush reaches the top.
- OnReachedBottom <string >
- Fired when the brush reaches the bottom.