Sign in to follow this  

Is it possible to make a qustom item spawn at start in random location

Recommended Posts

AkaiNight    28

I am trying to make an upgradeable hat. It has 4 shapes. For first one you must drop it from bosses(it drops when you kill enought boss). For the second form you must craft it with some items and for the third one you must find 3 pieces on map and for the third one you must find an gem spot in ornate chest(%100 drop rate) and some crafting.


The problem is i don't know if its possible to make the pieces spawn at start at random places. Also is it possible to add custom item in the ornate chest. Its a character mod and the hat is under character mod İt would be great if someone show or tell me how to do it.

Share this post

Link to post
Share on other sites
Monti18    404

For your problem with spawing at random places, I think the easiest way is to make a custom setpiece that always spawns that item. I can't help you further with that as I also don't know how to do it.

The ornate chest is spawned with the prefab "minotaurchestspawner", you can have a look at the game files and see what it does. You could try and see if it works if you add a PrefabPostInit that also adds after 3 seconds your item to the chest like the original does for the other items. Another way to do it woud be with the upvaluehacker.

  • Like 1
  • Wavey 1

Share this post

Link to post
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
Sign in to follow this