Jump to content

[SOLVED] Help with eventannouncer.lua (Replacing the widgets/eventannouncer.lua in original source game)


Recommended Posts

I found this eventannouncer from the original source script/widgets/eventannouncer
And I want to change the way it announce when a player dead and ressurrect from this 
Untitled.png.92be5aeb0d908a1e63bfd823569167ef.pngUntitled.png.abccc50b514b72442fb7d6206160fae0.png
to this
but the problem is I caneventannouncer.lua't make it like a mods. I ever tried some way like turn eventannouncer.lua to modmain.lua but it isn't work. Please if you know help me!!
Thank so much!
 

@Mr.Rickzzs I've already solved it but I have the other problem

When I created it in the new modmain.lua (nothing inside except 2 line), it will work

AddClassPostConstruct("widgets/eventannouncer", function(self)   --Now we have access like with
    AddComponentPostInit("component", fn(self))end)



But the problem is, when I combine it into my mod (Character mod) modmain.lua, then it isn't work. I already tried to use modimport

 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...