Env radio

From Valve Developer Community
Revision as of 12:35, 22 June 2019 by Soer4769 (talk | contribs) (Created page for the env_radio entity found in Sin Episodes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
List of SE1 entities


Template:Se1 point It is an ambient entity that acts as a radio and works identical to the one found in the sin car, where it will continuously play the set of soundfiles found on a radio station located in scripts/radio.txt on loop in space as ambient_generic until told otherwise.

Keyvalues

RadioOn ([todo internal name (i)]) <integer>
Radio on or off.
ScriptFile ([todo internal name (i)]) <string>
Script file containing station information (default: scripts/radio.txt).
Volume ([todo internal name (i)]) <float>
Radio Volume (0-100).
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

TurnOn
Turns the radio on.
TurnOff
Turns the radio off.
NextStation
Plays the next radio station.
PrevStation
Plays the previous radio station.
SetStation <integerRedirectInput/integer>
Plays the radio station with this number (starts at 0).
Note.pngNote: The entity will sometimes begin to play the station automatically upon receiving this input but may in other instances require to be turned off and on again to work.
SetVolume <integerRedirectInput/integer>
Sets the volume of the entity (0-100).
SetScript <stringRedirectInput/string>
Set the script file to gather radio stations from.


Ouputs

OnUse
Fires when the Use input is given.