OnPipboyRadioDetection - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Event that occurs when the Pipboy radio (player) enters/leaves the outer-radius of this radio transmitter.

Syntax[edit | edit source]

Event OnPipboyRadioDetection(bool abDetected)

Parameters[edit | edit source]

  • abDetected: True if the player has entered the outer radius, false if they have exited.

Examples[edit | edit source]

Event OnPipboyRadioDetection(bool abDetected)
  if (abDetected)
    Debug.Trace("The player can detect us.")
  else
    Debug.Trace("The player can no longer detect us.")
  endIf
endEvent

Notes[edit | edit source]

  • If registered on a repeater, the event will fire when the player enters/exits the outer-radius of that specific repeater.
  • If registered on a source transmitter with active repeaters, the event will fire when the player enters/exits the outer-radius of any of those refs, if none of the other refs are currently detected (i.e., if there's overlap: when you enter the first outer-radius, and when you exit the last).

See Also[edit | edit source]