ninjor1 Posted June 18, 2015 Share Posted June 18, 2015 I'd like to change what happens to a character (any character) when they die. Basically, I want to override the event handler for death. I know how to add event handlers, but I don't know how to override them. Thanks! Link to comment Share on other sites More sharing options...
Mobbstar Posted June 18, 2015 Share Posted June 18, 2015 Death is a special occurance, the game partially handles it outside of Lua (and as such the moddable code) I think. You may be able to prevent the "You Died!" screen by simply registering a resurrector (as seen in the corresponding components). Link to comment Share on other sites More sharing options...
Seiai Posted June 18, 2015 Share Posted June 18, 2015 if u really just want to overwrite an existing death-eventhandler, u can delete eventhandlers with the RemoveEventCallback function, search for how it's used in the code. Link to comment Share on other sites More sharing options...
Blueberrys Posted June 18, 2015 Share Posted June 18, 2015 @ninjor1 See how this mod does it. Link to comment Share on other sites More sharing options...
ninjor5 Posted June 25, 2015 Share Posted June 25, 2015 Thanks guys! That's a lot of help! Link to comment Share on other sites More sharing options...
Recommended Posts
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.