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 ({{lang}} -> {{Language subpage}}) |
m (fix) |
||
Line 2: | Line 2: | ||
{{back | List of SE1 entities}} | {{back | List of SE1 entities}} | ||
__NOTOC__ | __NOTOC__ | ||
{{Entity|env_radio|game=SiN Episodes}} 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. | {{Entity|env_radio|type=point|game=SiN Episodes}} 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. | ||
{{clr}} | {{clr}} |
Revision as of 02:55, 17 August 2023


Template:Entity 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
- 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.