IsPlayerListening - Game
Member of: Game Script
Returns whether the player actively listening to a transmitter that uses the given frequency.
SyntaxEdit
bool Function IsPlayerListening(float afFrequency) native global
ParametersEdit
- afFrequency - The frequency of the transmitter we're testing against.
Return ValueEdit
True if the Pipboy is on, set to a frequency that would receive a registered transmitter, and within the transmitter's outer radius.
ExamplesEdit
if (Game.IsPlayerListening(98.0))
Debug.Trace("Quick, the player's listening. Say something cool on frequency 98.0.")
endIf