API/Callbacks/plugins/Direction

Parameters in red are optional.

DirectionHide(event, id)

Hides one specific arrow

Parameters

  • id (string) The ID of the arrow that should be hidden.


DirectionHideAll(event)

Hides all current direction arrows.

Parameters


DirectionReached(event, id)

Triggered when the target is reached, or when out of danager range if away was set

Parameters

  • id (string) The identification of the direction that was reached.


DirectionToNameOrUnit(event, id, uID, tName, away, extra, icon)

Shows a direction arrow towards a unit or a player by name

Parameters

  • id (string) Identofication of the arrow, used when interacting with the arrow later, (hiding).
  • uID (string) A unit indetifier to wich the arrow should point. Have to be a unit within your party, (party1..n or raid1..n).
  • tName (string) Secondary way of finding the target, if no uID or an incorrect uID is supplied it will try and find the uID from this name.
  • away (number) A number representing the safe distance, that is when the distance to the target is greater then away it will be greem else fade towards red the closer the target is. If nill is passed the arrow will point towards the target instead.
  • extra (string|number) String or SpellID that will be used to put an extra tag to the arrow, if it is a spellID the icon will also be used.
  • icon (string|number) Texture path or spellID.

Usage

RW.Callbacks:Fire("DirectionToNameOrUnit", arrow1, raid5, nil, 24323)


DirectionToPosition(event, id, x, y, away, extra, icon)

Shows a direction arrow towards a point.

Parameters

  • id (string) Identofication of the arrow, used when interacting with the arrow later, (hiding).
  • x (number) The X position.
  • y (number) The Y position.
  • away (number) A number representing the safe distance, that is when the distance to the target is greater then away it will be greem else fade towards red the closer the target is. If nill is passed the arrow will point towards the target instead.
  • extra (string|number) String or SpellID that will be used to put an extra tag to the arrow, if it is a spellID the icon will also be used.
  • icon (string|number) Texture path or spellID.



Comments

Posts Quoted:
Reply
Clear All Quotes