Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Env player surface trigger
From HalfLife 2 Knowledge Base
Contents |
[edit]
env_player_surface_trigger
Source(core) Point Entity
[edit]
description
An entity that monitors the material of the surface the player is standing on, and fires outputs whenever it changes to/from a specific material.
[edit]
properties
- Name targetname(target_source)
The name that other entities refer to this entity by. - Game Material to Watch gamematerial(choices) - default: The material to watch. When the player stands on/off this material, this entity's outputs will be fired.
- 0 - None (player's in the air)
- 67 - Concrete
- 77 - Metal
- 68 - Dirt
- 86 - Vent
- 71 - Grate
- 84 - Tile
- 83 - Slosh
- 87 - Wood
- 80 - Computer
- 89 - Glass
- 70 - Flesh
- 73 - Clip
- 79 - Foliage
- 78 - Sand
[edit]
spawn flags
none.
[edit]
inputs
- Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired. - Enable(void)
Start watching the player's surface. - Disable(void)
Stop watching the player's surface.
[edit]
outputs
- OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input. - OnSurfaceChangedToTarget(void)
Fired when the player moves onto the specified game material. - OnSurfaceChangedFromTarget(void)
Fired when the player moves off the specified game material.
[edit]
related tutorials
Submit your tutorial for env_player_surface_trigger

