Difference between revisions of "SetRadioOn - ObjectReference"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
 
 
Line 21: Line 21:
<source lang="papyrus">
<source lang="papyrus">
; Turns on the radio
; Turns on the radio
myRadio.SetOn()
myRadio.SetRadioOn()
</source>
</source>
<br/>
<br/>
<source lang="papyrus">
<source lang="papyrus">
; Turns off the radio
; Turns off the radio
myRadio.SetOn(false)
myRadio.SetRadioOn(false)
</source>
</source>



Latest revision as of 17:30, 10 May 2023

Member of: ObjectReference Script

Turns on or off this radio receiver.

Syntax[edit | edit source]

Function SetRadioOn(bool abOn = true) native

Parameters[edit | edit source]

  • abOn: Whether to turn on or off this radio.
    • Default: True

Return Value[edit | edit source]

None

Examples[edit | edit source]

; Turns on the radio
myRadio.SetRadioOn()


; Turns off the radio
myRadio.SetRadioOn(false)

See Also[edit | edit source]