OnHolotapePlay - ObjectReference

Revision as of 14:39, 22 February 2018 by imported>Qazaaq (fixed link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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