Func elevator/en
Language subpage
This subpage is used on the Func elevator page to display content in English.
If you have edited the language subpage, do not forget to purge the base page by clicking on the button on the right. Otherwise, its contents will not be updated.
class hierarchy |
---|
CFuncElevator |
It is an elevator that moves vertically.
Example map: sdk_content\mapsrc\No Mercy\l4d_hospital04_interior.vmf
.
Contents
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>
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Inputs
MoveToFloor
<string>- Start the elevator moving to the specified floor. Specifying "top" will move it to the top floor position, "bottom" will move it to the bottom floor position.
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.