sasukefan01234 Posted February 9, 2015 Share Posted February 9, 2015 How can i do this for a custom character only? Link to comment https://forums.kleientertainment.com/forums/topic/50788-having-ghost-respawn-with-items-already-on-their-inventory/ Share on other sites More sharing options...
Auth Posted February 9, 2015 Share Posted February 9, 2015 How can i do this for a custom character only? you can't without redoing the entire death mechanic. Link to comment https://forums.kleientertainment.com/forums/topic/50788-having-ghost-respawn-with-items-already-on-their-inventory/#findComment-611507 Share on other sites More sharing options...
Jjmarco Posted February 9, 2015 Share Posted February 9, 2015 @sasukefan01234, @Weirdobob, actually, it's quite easy.If you want the character to keep its inventory when turning into a ghost, just add this in its master_postinit:inst.components.inventory.DropEverything = function() return false endIt will override DropEverything so that nothing is dropped when your char dies. Link to comment https://forums.kleientertainment.com/forums/topic/50788-having-ghost-respawn-with-items-already-on-their-inventory/#findComment-611513 Share on other sites More sharing options...
sasukefan01234 Posted February 10, 2015 Author Share Posted February 10, 2015 Jjmarco ty for the usefull information Link to comment https://forums.kleientertainment.com/forums/topic/50788-having-ghost-respawn-with-items-already-on-their-inventory/#findComment-611592 Share on other sites More sharing options...
SenL Posted February 10, 2015 Share Posted February 10, 2015 Hm very cool.I have a custom sword that it stays after death.In its prefab lua, I put inst.components.inventoryitem.keepondeath = true 1 Link to comment https://forums.kleientertainment.com/forums/topic/50788-having-ghost-respawn-with-items-already-on-their-inventory/#findComment-611604 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