Difference between revisions of "IsPlayerRadioOn - Game"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
(Created page with "Category:Scripting Category:Papyrus '''Member of:''' Game Script Returns whether the player's radio is currently on or not. == Syntax == <source lang="papyrus"> flo...")
 
m (wrong return value in the Syntax, should be a bool)
 
Line 7: Line 7:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
float Function IsPlayerRadioOn() native global
bool Function IsPlayerRadioOn() native global
</source>
</source>



Latest revision as of 13:07, 31 March 2024

Member of: Game Script

Returns whether the player's radio is currently on or not.

Syntax[edit | edit source]

bool Function IsPlayerRadioOn() native global

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

True if the player's radio is currently turned on.

Examples[edit | edit source]

if (Game.IsPlayerRadioOn())
  Debug.Trace("Player's radio is currently on... hopefully he's not trying to be sneaky!")
endIf

See Also[edit | edit source]