ThirteenDoctors Posted May 8, 2020 Share Posted May 8, 2020 Hello! I am a new modder and I need help creating a character. I want to create a character that drops a piece nightmare fuel every 4-5 minutes or maybe longer. I'm not sure if it is possible but if it is, I would appreciate some help with it. Link to comment https://forums.kleientertainment.com/forums/topic/118083-make-a-character-spawn-items/ Share on other sites More sharing options...
Well-met Posted May 8, 2020 Share Posted May 8, 2020 use the shedder component. look in bearger.lua to find out how it works Link to comment https://forums.kleientertainment.com/forums/topic/118083-make-a-character-spawn-items/#findComment-1331997 Share on other sites More sharing options...
rawii22 Posted May 8, 2020 Share Posted May 8, 2020 (edited) I think you're best bet would be to figure out how to implement the DoPeriodicTask(seconds, function) to your character. EDIT: I just looked at shedder, it's pretty short, but it does what I meant. There's a function StartShedding(interval) where interval is the seconds between sheds. Also, you'll want to set the properties (shedItemPrefab and shedHeight) to the appropriate values for your character. As @Well-met said, bearger is perfect for seeing how that is implemented. Edited May 8, 2020 by rawii22 Link to comment https://forums.kleientertainment.com/forums/topic/118083-make-a-character-spawn-items/#findComment-1332039 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