[DiscordArchive] C_Mount = {
[DiscordArchive] C_Mount = {
Archived author: Widget • Posted: 2025-04-12T16:37:07.070000+00:00
Original source
C_Mount = {
MyFunction = function()
print("asd!")
end
}
this?
Archived author: Widget • Posted: 2025-04-12T16:37:45.008000+00:00
Original source
or you wanna do it from C/DLL and expose it in the client
Archived author: Peacy • Posted: 2025-04-12T16:39:15.890000+00:00
Original source
Well yes, that is how you create it in lua but I mean, how do you create it via DLL for example:
When I do this:
```c++
Lua::RegisterFunction((int)FrameScript::GetSpellDescription, "GetSpellDescription");
```
I can now do /run GetSpellDescription() in game and it will run my DLL function. I can I get it to run my DLL function if I want to do /run prefix.function().
Archived author: Widget • Posted: 2025-04-12T16:39:29.405000+00:00
Original source
https://github.com/FrostAtom/awesome_wot...#L128-L143
Archived author: Peacy • Posted: 2025-04-12T16:39:41.514000+00:00
Original source
Thanks ❤️
Archived author: Widget • Posted: 2025-04-12T16:40:00.131000+00:00
Original source
creates C_NamePlate table and adds 2 methods to it
C_NamePlate.GetNamePlates
C_NamePlate.GetNamePlateForUnit