View Single Post
06-14-18, 02:09 PM   #1
saxitoxin
A Theradrim Guardian
 
saxitoxin's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 60
[AddonHelp] adding a waypoint in TomTom

How do i add a waypoint in TomTom from inside a addon

in the TomTom_Waypoints.lua file line 7-8 it says
Code:
--  don't call TomTom:SetWaypoint() or TomTom:ClearWaypoint(), use the public
--  TomTom:AddZWaypoint() and TomTom:RemoveWaypoint() instead.
so i'm trying the following
Lua Code:
  1. local waypoint = "Wintergrasp 50.4 16.4 Vault of Archavon"
  2. if waypoint then
  3.     if IsAddOnLoaded("TomTom") then
  4.         TomTom:AddZWaypoint(waypoint)
  5.     else
  6.         print(waypoint)
  7.     end
  8. end

if someone could help me out that would be very great
  Reply With Quote