OnHolotapeChatter - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

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

Syntax

Event OnHolotapeChatter( string astrChatter, float afNumericData )

Parameters

  • 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

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