Env radio: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page for the env_radio entity found in Sin Episodes)
 
m (added language bar. also some formatting.)
Line 1: Line 1:
{{lang|Env radio}}
{{back | List of SE1 entities}}
{{back | List of SE1 entities}}
__NOTOC__
__NOTOC__
 
{{se1 point|env_radio}} It is an ambient entity that acts as a radio and works identical to the one found in the [[prop_vehicle_sin|sin car]], where it will continuously play the set of soundfiles found on a [[List_of_SE1_Radio_Stations|radio station]] located in <code>scripts/radio.txt</code> on loop in space as {{ent|ambient_generic}} until told otherwise.
{{se1 point}} It is an ambient entity that acts as a radio and works identical to the one found in the [[prop_vehicle_sin | sin car]], where it will continuously play the set of soundfiles found on a [[List_of_SE1_Radio_Stations | radio station]] located in ''scripts/radio.txt'' on loop in space as [[ambient_generic]] until told otherwise.


{{clr}}
{{clr}}


==Keyvalues==
==Keyvalues==
{{KV | RadioOn |Integer| Radio on or off.}}
{{KV|RadioOn|integer|Radio on or off.}}
{{KV | ScriptFile |String| Script file containing station information (default: scripts/radio.txt).}}
{{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).}}
{{KV Targetname}}
{{KV BaseEntity|base=1|noscroll=1}}
 
==Inputs==
==Inputs==
{{IO | TurnOn | Turns the radio on.}}
{{IO|TurnOn|Turns the radio on.}}
{{IO | TurnOff | Turns the radio off.}}
{{IO|TurnOff|Turns the radio off.}}
{{IO | NextStation | Plays the next radio station.}}
{{IO|NextStation|Plays the next radio station.}}
{{IO | PrevStation | Plays the previous radio station.}}
{{IO|PrevStation|Plays the previous radio station.}}
{{IO | SetStation | Plays the radio station with this number (starts at 0). | param=Integer}}
{{IO|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 may in other instances require 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.}}
{{IO | SetVolume | Sets the volume of the entity (0-100). | param=Integer}}
{{IO|SetVolume|Sets the volume of the entity (0-100).|param=integer}}
{{IO | SetScript | Set the script file to gather radio stations from. | param=String}}
{{IO|SetScript|Set the script file to gather radio stations from.|param=string}}
{{I Targetname}}
{{I BaseEntity|base=1}}


==Ouputs==
==Ouputs==
{{IO|OnUse|Fires when the <code>Use</code> input is given.}}
{{IO|OnUse|Fires when the <code>Use</code> input is given.}}
{{O Targetname}}
{{O BaseEntity}}
 
[[Category: Sin Episodes]]

Revision as of 19:25, 20 May 2022

English (en)Translate (Translate)
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).

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 in other instances, it may need 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.