Background for Fallout 4
Member of the ObjectReference script

Description

Wiki Description

Event sent to a holotape when it is played via Pipboy or Terminal.

Documentation Comment

Event that occurs when a holotape is played via Pipboy or terminal.


Caveats

CK Wiki - Notes

Scripts extending ObjectReference attached to a Holotape will not receive this event if the holotape was played from a pipboy. There has been no feedback from the developers on using this event with a pipboy or if it was intended to work with one at all.


Parameters

  1. ObjectReferenceaTerminalRef

    CK Wiki Description

    If run from a terminal, the terminal reference. If None, then it's being run from the pipboy.


Examples

; Event is sent to the player
Event OnHolotapePlay(ObjectReference akTerminalRef)
  Debug.Trace(self + " was just played on terminal " + akTerminalRef)
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnHolotapePlay(ObjectReference aTerminalRef)
    Debug.trace("Event received - OnHolotapePlay: aTerminalRef = " + aTerminalRef)
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.