Jump to content
  • 0

Randomized Resources? Hide Resources until condition met?



I'm sure this might be possible with some technical/event wizardry, but I was wondering if anyone had a good process for this or dealt with it before - 


For example, let's say you set up a 3x3 grid in your map with a specific resource. By default, when running the game all of these will appear at the same time until the player has depleted them. Is there a way to set only a certain number/percentage of resources to appear at once? For example, you could set it to 50% and only half of the available resource tiles spawn/appear (Until one is harvested then another will pop elsewhere in to replace it.) 


Additionally, is there a way to hide a resource tile if the player does not meet a specific condition? Right now they can still be seen, just not harvested. 







Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

I think you'd have to edit some stuff to not make them all spawn right as soon as a map is created, but have them spawn with random spawn timers for that.


Same with hiding them, you'd likely have to change some stuff around so the client knows which ones should and shouldn't be visible as right now it just renders them all blindly.

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
  • Create New...