OnHolotapeChatter - ObjectReference

Member of: ObjectReference Script

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

SyntaxEdit

Event OnHolotapeChatter( string astrChatter, float afNumericData )

ParametersEdit

  • 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.

ExamplesEdit

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 AlsoEdit