Originally Posted by Ailae
I guess you could, but why would you?
You're creating a function just to call another function that does all the stuff (I presume). As long as your PVPSound table is local, the UpdateSoundEffectEngine function will also be local and you can set it as the script handler.
Lua Code:
function PVPSound:UpdateSoundEffectEngine(elapsed) -- stuff goes on here end PVPSoundEffectSoundEngineFrame:SetScript("OnUpdate", PVPSound.UpdateSoundEffectEngine)
|
Oh i see you can call it with "PVPSound.UpdateSoundEffectEngine" have no clue why did i wanted to call it with "PVPSound:UpdateSoundEffectEngine".
Well the PVPSound table is a local, but its a namespace shared local between my addon's files.