Hello Scripters, Developers and readers,
I just noticed, that when I try binding an event to two different LUA Scripts, it will only be registered to the first LUA Module.
Example:
Script1:
Script2:
Now, if I activate both Script modules, only the first active will trigger the event, the second one won't.
Is this a bug or intended functionality?
Thanks in advance
[Question] [LUA] [Plugin API]
I just noticed, that when I try binding an event to two different LUA Scripts, it will only be registered to the first LUA Module.
Example:
Script1:
Code:
local function onClientMoveEvent(serverConnectionHandlerID, clientID, oldChannelID, newChannelID, visibility, moveMessage)
ts3.printMessage(ts3.getCurrentServerConnectionHandlerID(), "TESTA onClientMoveEvent" , 1)
end
local registeredEvents = {
onClientMoveEvent = TESTA.onClientMoveEvent
}
ts3RegisterModule("TESTA", registeredEvents)
Script2:
Code:
local function onClientMoveEvent(serverConnectionHandlerID, clientID, oldChannelID, newChannelID, visibility, moveMessage)
ts3.printMessage(ts3.getCurrentServerConnectionHandlerID(), "TESTB onClientMoveEvent" , 1)
end
local registeredEvents = {
onClientMoveEvent = TESTB.onClientMoveEvent
}
ts3RegisterModule("TESTB", registeredEvents)
Is this a bug or intended functionality?
Thanks in advance
0 commentaires:
Enregistrer un commentaire