OnHolotapeChatter - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Event that occurs when a flash program on a holotape wants to communicate with script.

Syntax[edit | edit source]

Event OnHolotapeChatter( string astrChatter, float afNumericData )

Parameters[edit | edit source]

  • astrChatter: A string sent by the flash program. Its meaning is determined by the script which registers for the event.
  • afNumericData: Additional param for numeric data to be sent across.

Examples[edit | edit source]

Event OnHolotapeChatter( string astrChatter, float afNumericData )
  if ( astrChatter == "RedMenaceScore" && afNumericData > fHighScore )
    Debug.Trace("We beat the high score in Red Menace.  Kick off a quest!")
  endIf
endEvent

See Also[edit | edit source]