env_dispenser
Jump to navigation
Jump to search
env_dispenser
is a point entity available in Black Mesa. This entity used for vending machines to dispense the soda cans (prop_soda entity).
Represented by class CEnv_Dispenser
.
Keyvalues

The three flavors of soft drinks in
Black Mesa.

- 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
- Model to spawn (spawnmodel) <model path>
- Model to spawn when activated.

- Spawn angles (spawnangles) <angle>
- Orientation of the model at spawn (Y Z X).

0 0 0
).
- Capacity (capacity) <integer>
- Number of models to spawn.
- Minimum skin (skinmin) <integer>
- Minimum skin number.
- Maximum skin (skinmax) <integer>
- Maximum skin number.

Inputs
- Activate <void>
- Spawn object with the specified model and skin. The object will spawn in env_dispenser origin.
- Break <void>
- Rapidy spawn all the items remaining in the dispenser.
Outputs
- OnBreak <void>
- Fires via Break input.
- OnEmpty <void>
- Fires when entity tries to spawn model (via Activate input) while is empty.