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 https://forums.kleientertainment.com/forums/topic/55397-override-event-handlers/ 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 https://forums.kleientertainment.com/forums/topic/55397-override-event-handlers/#findComment-648039 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 https://forums.kleientertainment.com/forums/topic/55397-override-event-handlers/#findComment-648058 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 https://forums.kleientertainment.com/forums/topic/55397-override-event-handlers/#findComment-648084 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 https://forums.kleientertainment.com/forums/topic/55397-override-event-handlers/#findComment-649681 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now