Background for Fallout 4
Member of the ObjectReference script
eventOnPipboyRadioDetection(boolabDetected)

Description

Wiki Description

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

Documentation Comment

Event that occurs when the Pipboy enters/leaves the outer-radius of this radio ref


Caveats

CK Wiki - Notes

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

Parameters

  1. boolabDetected

    CK Wiki Description

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


Examples

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

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnPipboyRadioDetection(bool abDetected)
    Debug.trace("Event received - OnPipboyRadioDetection: abDetected = " + abDetected)
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.