IsPlayerListening - Game

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Game Script

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

Syntax[edit | edit source]

bool Function IsPlayerListening(float afFrequency) native global

Parameters[edit | edit source]

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

Return Value[edit | edit source]

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

Examples[edit | edit source]

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

See Also[edit | edit source]