Hello i'm trying to create a simple arrow using lib3D arrow, but it isn't working and idk what i'm doing wrong.
This is my code :
function GetPosShuba()
playerX, playerY = LibGPS2:LocalToGlobal(GetMapPlayerPosition("player"))
d("X :" ..playerX .." Y:" ..playerY)
end
function VisShuba()
d("ex2 X :" ..playerX .." Y:" ..playerY)
waypoint = Lib3DArrow:CreateArrow({
depthBuffer = false,
arrowMagnitude = 5,
arrowScale = 1,
arrowHeight = 1,
arrowColour = "FF0000",
distanceDigits = 4,
distanceScale = 25,
distanceColour = "FFFFFF",
markerColour = "FF0000",
markerScale = 1,
})
waypoint:SetTarget(playerX, playerY)
waypoint.arrow:SetHidden(false/ true) --tried both but now working
waypoint.distance:SetHidden(false / true)
waypoint.marker:SetHidden(false / true)
end
SLASH_COMMANDS["/getposshuba"] = GetPosShuba
SLASH_COMMANDS["/visibleshuba"] = VisShuba
Ty for the help in case
Link of Lib3DArrow :
https://www.esoui.com/downloads/info...ib3DArrow.html