DegradedScroll Posted January 7, 2015 Share Posted January 7, 2015 So I want my character to start off with a backpack, how do I make it so he already has a backpack equipped since I cannot put a backpack in the start_inv section? Thanks in advance! Link to comment https://forums.kleientertainment.com/forums/topic/48588-custom-character-backpack-help/ Share on other sites More sharing options...
Sarcen Posted January 7, 2015 Share Posted January 7, 2015 Just wondering but what happens when you put it in start_inv? why wont that work? Link to comment https://forums.kleientertainment.com/forums/topic/48588-custom-character-backpack-help/#findComment-598175 Share on other sites More sharing options...
rezecib Posted January 7, 2015 Share Posted January 7, 2015 @Sarcen, From when I was porting Clementine earlier in the beta (not the official version which was ported now, just a small unpublished version for a friend I was playing with), it just didn't show up. You could put it in start_inv, and it would work just like if you hadn't. I believe in single-player it used to drop on the ground next to you instead, which is what happens if you do c_give('krampus_sack'), etc, now. But as for how to do it... You might be able to hack around it by spawning one in with a function that listens for an event like setowner. Link to comment https://forums.kleientertainment.com/forums/topic/48588-custom-character-backpack-help/#findComment-598332 Share on other sites More sharing options...
DegradedScroll Posted January 7, 2015 Author Share Posted January 7, 2015 (edited) @Sarcen, From when I was porting Clementine earlier in the beta (not the official version which was ported now, just a small unpublished version for a friend I was playing with), it just didn't show up. You could put it in start_inv, and it would work just like if you hadn't. I believe in single-player it used to drop on the ground next to you instead, which is what happens if you do c_give('krampus_sack'), etc, now. But as for how to do it... You might be able to hack around it by spawning one in with a function that listens for an event like setowner. Ah... But I don't really know much about coding. I've been squeezing my way by as it is now... The backpack is the last and final step of completion. *EDIT*: Would it have something to do with OnLocalPlayerSpawned? How do I do that so it works for the starting inventory only? Edited January 7, 2015 by DegradedScroll Link to comment https://forums.kleientertainment.com/forums/topic/48588-custom-character-backpack-help/#findComment-598379 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