Env radio: Difference between revisions
Jump to navigation
Jump to search

Note:The entity will sometimes begin to play the station automatically upon receiving this input, but in other instances, it may need to be turned off and on again to work.
m (Nesciuse moved page Env radio/en to Env radio without leaving a redirect: Move en subpage to basepage) |
No edit summary |
||
Line 8: | Line 8: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | |||
{{KV|RadioOn|integer|Radio on or off.}} | {{KV|RadioOn|integer|Radio on or off.}} | ||
{{KV|ScriptFile|string|Script file containing station information (default: <code>scripts/radio.txt</code>).}} | {{KV|ScriptFile|string|Script file containing station information (default: <code>scripts/radio.txt</code>).}} | ||
{{KV|Volume|float|Radio Volume (0–100).}} | {{KV|Volume|float|Radio Volume (0–100).}} | ||
==Inputs== | ==Inputs== | ||
{{ | {{I|TurnOn|Turns the radio on.}} | ||
{{ | {{I|TurnOff|Turns the radio off.}} | ||
{{ | {{I|NextStation|Plays the next radio station.}} | ||
{{ | {{I|PrevStation|Plays the previous radio station.}} | ||
{{ | {{I|SetStation|Plays the radio station with this number (starts at 0).|param=integer}} | ||
{{note|The entity will sometimes begin to play the station automatically upon receiving this input, but in other instances, it may need to be turned off and on again to work.}} | {{note|The entity will sometimes begin to play the station automatically upon receiving this input, but in other instances, it may need to be turned off and on again to work.}} | ||
{{ | {{I|SetVolume|Sets the volume of the entity (0-100).|param=integer}} | ||
{{ | {{I|SetScript|Set the script file to gather radio stations from.|param=string}} | ||
==Ouputs== | ==Ouputs== | ||
{{ | {{O|OnUse|Fires when the <code>Use</code> input is given.}} | ||
Latest revision as of 16:39, 25 September 2024


env_radio
is a point entity available in SiN Episodes. 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
- 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
- ScriptFile ([todo internal name (i)]) <string>
- Script file containing station information (default:
scripts/radio.txt
).
Inputs
- TurnOn
- Turns the radio on.
- TurnOff
- Turns the radio off.
- NextStation
- Plays the next radio station.
- PrevStation
- Plays the previous radio station.
- SetStation <integer >
- Plays the radio station with this number (starts at 0).

- SetVolume <integer >
- Sets the volume of the entity (0-100).
- SetScript <string >
- Set the script file to gather radio stations from.
Ouputs
- OnUse
- Fires when the
Use
input is given.