IsPlayerInRadioRange - Game

From Creation Kit
Jump to: navigation, search

Member of: Game Script

Returns whether the player is within the outer radius of a transmitter using the given frequency.


bool Function IsPlayerInRadioRange(float afFrequency) native global


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

Return Value

True if a transmitter exists using the given frequency and the player is within its outer radius.


if (Game.IsPlayerInRadioRange(98.0))
  Debug.Trace("The player can pick up a station at frequency 98.0.")

See Also