Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-20-10, 01:44 PM   #1
TrotskyIcepick
A Warpwood Thunder Caller
Join Date: Mar 2010
Posts: 92
KGPanels Vehicle Script not working

Hi All,

I have the following in my kgpanels.lua:

["LOAD"] = "self:RegisterEvent(\"UNIT_ENTERED_VEHICLE");n
self:RegisterEvent(\"UNIT_ENTERING_VEHICLE");n
self:RegisterEvent(\"UNIT_EXITING_VEHICLE");n
self:RegisterEvent(\"UNIT_EXITED_VEHICLE\");",

["EVENT"] = "if (event == \"UNIT_ENTERED_VEHICLE\") then\n
if ( arg1 == \"player\" ) then\n
self.hide = true;\n
end\n
else if ( event == \"UNIT_EXITED_VEHICLE\" ) then\n
if ( arg1 == \"player\" ) then\n
self.show = true;\n
end\n
end\n

When I enter a vehicle, nothing happens. When I added the scripts to the onLoad and onEvent settings for the panel they were accepted as being valid.

Anybody got any ideas as to why this isn't working?

Thanks In Advance.
end"
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » KGPanels Vehicle Script not working


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