OnHolotapePlay - ObjectReference

This article has been flagged as inaccurate.
Please help improve the wiki by learning how to contribute.

Member of: ObjectReference Script

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

SyntaxEdit

Event OnHolotapePlay(ObjectReference akTerminalRef)

ParametersEdit

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

ExamplesEdit

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

NotesEdit

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.

See AlsoEdit