eventOnHolotapePlay(ObjectReferenceaTerminalRef)
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
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)
endEventAuto-Generated Example
Scriptname MyCoolScript extends ObjectReference
event OnHolotapePlay(ObjectReference aTerminalRef)
Debug.trace("Event received - OnHolotapePlay: aTerminalRef = " + aTerminalRef)
endEvent