IsPlayerInRadioRange - Game
Jump to navigation
Jump to search
Member of: Game Script
Returns whether the player is within the outer radius of a transmitter using the given frequency.
Syntax[edit | edit source]
bool Function IsPlayerInRadioRange(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 a transmitter exists using the given frequency and the player is within its outer radius.
Examples[edit | edit source]
if (Game.IsPlayerInRadioRange(98.0))
Debug.Trace("The player can pick up a station at frequency 98.0.")
endIf