icantevenname Posted April 9, 2020 Share Posted April 9, 2020 I want to make something happen to a character once they're revived. Unfortunately, it's not as simple as putting it in "onbecamehuman", since that seems to include spawning into the game. What should the code be listening for? Link to comment https://forums.kleientertainment.com/forums/topic/117133-having-a-thing-happen-on-revival/ Share on other sites More sharing options...
Ultroman Posted April 9, 2020 Share Posted April 9, 2020 player_inst:ListenForEvent("ms_respawnedfromghost", function (inst, data, ...) Link to comment https://forums.kleientertainment.com/forums/topic/117133-having-a-thing-happen-on-revival/#findComment-1322757 Share on other sites More sharing options...
icantevenname Posted April 9, 2020 Author Share Posted April 9, 2020 13 hours ago, Ultroman said: player_inst:ListenForEvent("ms_respawnedfromghost", function (inst, data, ...) I don't think what I'm doing is possible at all. What I wanna do is have a character have a different skin once revived, that'll reset to the normal skin once quitting the game and then rejoining. Once I force a revive, the ghost part disappears and then when the animation's done, it's the normal skin that's there. Link to comment https://forums.kleientertainment.com/forums/topic/117133-having-a-thing-happen-on-revival/#findComment-1322874 Share on other sites More sharing options...
Ultroman Posted April 9, 2020 Share Posted April 9, 2020 Then you have to extend OnSave and OnLoad on the entity inst to save and load a bool variable saying whether the player has been transformed once. Link to comment https://forums.kleientertainment.com/forums/topic/117133-having-a-thing-happen-on-revival/#findComment-1322884 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