Thread Tools Display Modes
Prev Previous Post   Next Post Next
03/20/23, 11:34 AM   #1
Shuba00
 
Shuba00's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2023
Posts: 20
LIB 3D arrow

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

Last edited by Shuba00 : 03/20/23 at 11:42 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » LIB 3D arrow


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off