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.

Syntax

bool Function IsPlayerInRadioRange(float afFrequency) native global

Parameters

  • 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.

Examples

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

See Also