Thread Tools Display Modes
Prev Previous Post   Next Post Next
07/12/24, 12:54 AM   #1
static_recharge
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 38
Tables vs Objects Help

I am having a very hard time understanding what is going on here and would greatly appreciate any help. I am diving into using the ZO objects for add-on development to expand my horizons. I have created an object that does exactly what I want it to do with a global reference "LibTimer". If I use the global reference everything works as intended:
Code:
LibTimer:Start()
No errors.

However when I try to use a local shortform such as:
Code:
local LT = LibTimer --this is at the start of the file
...
LT:Start()
I get an error about indexing a nil value. When I try to debug the issue, LT does in fact = nil. I don't know why this is not working.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Tables vs Objects Help


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