ShowAsHelpMessage - Message

Revision as of 17:18, 20 October 2011 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Message Script

Displays a help message on screen for a specified duration at specified intervals until a specified number of showings occurs or until a user event takes place.

SyntaxEdit

Function ShowAsHelpMessage(string asEvent, float afDuration, float afInterval, int aiMaxTimes) native

ParametersEdit

  • asEvent: The event which both identifies and ends the help message. There can be only one message per event and once the event occurs, the message will not display again. To redisplay a message or display a new message for an event, use ResetHelpMessage. Button Tag Replacement.
  • afDuration: How long should the message appear before going away? A value <= 0 means no time limit.
  • afInterval: How much time should elapse in between showings of the message.
  • aiMaxTimes: After this many times being shown, the message will stop appearing. A value <= 0 means no occurrence limit.

ExampleEdit

; Display a message telling the player to press the jump button.
; In this example, the message's text would be something like "Press [Jump] to jump."
Message.ShowAsHelpMessage("Jump", 5, 30, 3)

See AlsoEdit