Thread: lua problem
View Single Post
10-28-10, 12:29 PM   #7
Quokka
A Chromatic Dragonspawn
 
Quokka's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 196
Originally Posted by Mischback View Post
You Don't register your Frame to listen to any events... Use calls like

Frame:RegisterEvent('EVENTNAME')

To actually listen to events before the SetScript-call.

Posted via phone, so fix typos yourself
m8 you might need a bigger phone screen.
at the bottom I register the frames

Code:
AI1:RegisterEvent('UNIT_ENTERED_VEHICLE')
AI1:RegisterEvent('UNIT_EXITED_VEHICLE')
__________________
  Reply With Quote