Skip to content

elprice/arrow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arrow

A module for Windower 4 addons to use to draw a pointed arrow @ x,y,z with a text box containing the target name and distance

unknown2 unknown unknown3

Usage

In your project:

Copy in Images/ and arrow.lua

-- load the module
local arrowmodule = require('arrow')

-- create/delete the arrow & text box
arrow.init()
arrow.destroy()

-- update the arrow point at (target_x,target_y) and
--  set the text box to target_name
--  Note: calls arrow.show() 
arrow.update(target_name,target_x,target_y)

-- show/hide the arrow & text box
arrow.show()
arrow.hide()

ArrowDemo

-- load
lua load arrowdemo

-- point arrow at mob in the mob table
//ad pointat <mob_name>

-- to stop
//ad stop