Jump to content

Make a character spawn items


Recommended Posts

    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
Share on other sites

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 by rawii22
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...