ScenEdit_CreateBarkNotification_Unit ( UnitNameOrID, text, R, G, B [, moveUpward, fade, lifeTime, fontSize ] )

The function's purpose is to show a 'bark' anchored on a unit.
Barks are short text notifications that can be set to appear, briefly, anywhere on the map.

Parameters

  • UnitNameOrID string The unit name or GUID. As no side is specified, GUID is more reliable
  • text string Text to show
  • R number The 'Red' component of the color (0-255) to show the text in
  • G number The 'Green' component of the color (0-255)
  • B number The 'Blue' component of the color (0-255)
  • moveUpward True/False [Optional] Default is True. This will move the text upwards
  • fade True/False [Optional] Default is True. This controls the fading out of the text
  • lifeTime number [Optional] Default is 1 second. This controls how long the text stays visible
  • fontSize number [Optional] Default is 18. This controls the fonst size of the text

Returns

  • True/False

Example

ScenEdit_CreateBarkNotification_Unit ('XUL8NN-0HMBJVGGI5PM0', 'Prepare to be amazed', 255, 0, 0)