Skip to content
FMFallout Multiplayer Scripting APIScripting guides and API
Global objectClient APIGenerated

Radio

const Radio: object

Defined in: client/api.d.ts:1553

The server’s radio stations, as this client’s Pip-Boy radio lists them. Read-only: the server’s RadioStation creates them.

getFrequency(): number

The frequency the player’s Pip-Boy radio is tuned to, as Game.GetPlayerRadioFrequency reads it.

number

0 while the player has no radio.

getStations(): object[]

Every station the server streams to this client.

object[]

One entry per station, in no particular order; empty outside a session.

getStreamVolume(): number

How loud the stations’ audio streams play, 0 to 1.

number

isOn(): boolean

Whether the player’s Pip-Boy radio is on, as Game.IsPlayerRadioOn reads it.

boolean

False while it is off or the player has no radio.

setFrequency(frequency): void

Tunes the player’s Pip-Boy radio, as Game.SetPlayerRadioFrequency does.

number

A station’s frequency, as getStations lists it.

void

setOn(on): void

Turns the player’s Pip-Boy radio on or off, as Game.TurnPlayerRadioOn does.

boolean

On or off.

void

setStreamVolume(volume): void

How loud the stations’ audio streams (RadioStation.playStream) play. The game’s volume sliders do not reach them, so a settings menu sets this. 1 by default.

number

0 for silent to 1 for full.

void

setVoiceDirect(player, direct): boolean

Hears a player’s voice as over a radio: at full volume and from no direction, wherever they stand, instead of from their body. For a handheld radio on a frequency or a live DJ: the server routes who reaches whom with Voice.setPlayerRange and Voice.setLocalMute, and each listener’s client marks the talkers it hears over the air. Held until undone or the session ends.

number

The talking player’s network ID (player.id).

boolean

Heard as over a radio, or from their body again.

boolean

False when no such player is streamed to this client.