IsPlayerListening - Game

From Creation Kit
Jump to: navigation, search

Member of: Game Script

Returns whether the player actively listening to a transmitter that uses the given frequency.

Syntax

bool Function IsPlayerListening(float afFrequency) native global

Parameters

  • afFrequency - The frequency of the transmitter we're testing against.

Return Value

True if the Pipboy is on, set to a frequency that would receive a registered transmitter, and within the transmitter's outer radius.

Examples

if (Game.IsPlayerListening(98.0))
  Debug.Trace("Quick, the player's listening. Say something cool on frequency 98.0.")
endIf

See Also