Mineirinho Posted February 26, 2017 Share Posted February 26, 2017 Hello. I'm working on a PVP mod that spawns pandoras chests (prafab name) randomly all over the map for the players loot them and them fight each other. How can i access all this chests that i've spawned and put random loot on them? any ideas.? maybe a code that can search for ornate chests on the map, then update their loot? i don't know the exacty functions to do this for me... if someone can help i'll be grateful. Sorry for the bad english Link to comment Share on other sites More sharing options...
Lumina Posted February 26, 2017 Share Posted February 26, 2017 (edited) I'm not sure. I know that setpiece could be linked with a scenario option, and this option allows, in others things, to have chest with content in it. I don't know if you could use this option for things you spawn after the world generation. Also, maybe look at case when a chest is created. Ancien gardian create one, no ? Edited February 26, 2017 by Lumina Link to comment Share on other sites More sharing options...
RedHairedHero Posted February 26, 2017 Share Posted February 26, 2017 I think most of the time just like loot on enemies you have a list of items you want to potentially be inside and set the chance they'll appear inside. So basically when the game launches you would generate the loot randomly into each chest. Link to comment 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