I believe most of you know the map Mineralz. In the start there is allot of random rocks spawning randomly in clusters and i would like to know how this is done.
Here's a very cheap way of, presumably, doing what you'd want. I've never played that map you mentioned before so I don't know how specific it is, but this is a cheap way of doing it.
This action only spawns a single item though, you'll want many more. I'm also relatively new to Galaxy, I haven't found anything to make the actor rotation or scale different for each rock (Last created actor).
He means making a Integer[sizeofmap][sizeofmap] where a trigger randomly generates 1s and 0s in one of the dimensions, then placing a random number of rocks equal to the number of 1s in that array using the array's dimensions as coordinates. I'll write up a map real quick demonstrating it via Marines on a 32x32 map.
I use a clustering effect in my map Malum Ruina when a player uses a Fusion Bomb item. It basically spawns a whole bunch of rubble clustered together. You need to use the data editor to create a persistent effect, then using the persistent effect use a spawn unit effect, spawning the units you want with random offsets.
From there it's just picking where you want to create the persistent effect on the map. The action you'll want is Create Effect At Point (For Player).
Here's the map. Note that it only spawns a single marine for a given point. If you want to do cluster, set the % lower and set the amount of units spawns to be higher, or maybe make a function that you can call on to spawn a cluster instead of a single unit given a set of coordinates.
This create a very unnatutal look, very squarish. If i would see rocks like this in the nature then i would never ever believe the nature had made it like this. The rocks in Mineralz spawns allot more natural with allot more variation.
I asked him how he did it but i only got this as answer.
"I use a "Pick Each integer from 1 to 60", then a "Create 1 Mineral patch at a random point" and then "Create 10 rocks at the same point" There is nothing hard, its just random :)"
This would work if the rocks only where placed on a spot where the is no current rocks/minerals. If i do as he says then all minerals and rocks get stacked on each other on the same point :(
When i try to create 30 marines at a point then they space out directly just as it should be with the rocks, is there some datamodifications i need to make on the rocks to make this possible??
This create a very unnatutal look, very squarish. If i would see rocks like this in the nature then i would never ever believe the nature had made it like this. The rocks in Mineralz spawns allot more natural with allot more variation.
I asked him how he did it but i only got this as answer.
"I use a "Pick Each integer from 1 to 60", then a "Create 1 Mineral patch at a random point" and then "Create 10 rocks at the same point" There is nothing hard, its just random :)"
This would work if the rocks only where placed on a spot where the is no current rocks/minerals. If i do as he says then all minerals and rocks get stacked on each other on the same point :(
When i try to create 30 marines at a point then they space out directly just as it should be with the rocks, is there some datamodifications i need to make on the rocks to make this possible??
Oh, actually I forgot about random position in region function. Makes it WAY more simple.
Is this more to your liking? It's way more simple, doesn't look square, and I think will deal with your problem of rocks all stacking on the same spot.
Just change the marines to rocks in the Create Units line.
"Region - Move Random Spawn to Random Point" is to make it create clusters correctly that look more random and avoids stacking all the rocks at the same random point. If you were to just spawn the units in one random point, it would spawn all of the units in one spot with structures (rocks) and for normal units, they would look very square.
They way I created it was so you could copy+paste it to your own map and change the numbers and stuff to be to your own liking. I originally was using Marines because Destructible Rocks were really big. It occurs to me that maybe you meant the Rock doodad, in which case you'd replace the Create Units function with whatever exists to create doodads using the same principle.
Also, to increase the density of the clusters, simply reduce the size of the Random Spawn region.
I believe most of you know the map Mineralz. In the start there is allot of random rocks spawning randomly in clusters and i would like to know how this is done.
Here's a very cheap way of, presumably, doing what you'd want. I've never played that map you mentioned before so I don't know how specific it is, but this is a cheap way of doing it.
This action only spawns a single item though, you'll want many more. I'm also relatively new to Galaxy, I haven't found anything to make the actor rotation or scale different for each rock (Last created actor).
@MarvelousONE: Go
does this not make the rock stay on top of each other?
probably and array with [sizeofmap][sizeofmap] filled with random 0 and 1 and then placed rocks on every 1
@b0ne123: Go
Dont understand at all how you mean.
He means making a Integer[sizeofmap][sizeofmap] where a trigger randomly generates 1s and 0s in one of the dimensions, then placing a random number of rocks equal to the number of 1s in that array using the array's dimensions as coordinates. I'll write up a map real quick demonstrating it via Marines on a 32x32 map.
I use a clustering effect in my map Malum Ruina when a player uses a Fusion Bomb item. It basically spawns a whole bunch of rubble clustered together. You need to use the data editor to create a persistent effect, then using the persistent effect use a spawn unit effect, spawning the units you want with random offsets.
From there it's just picking where you want to create the persistent effect on the map. The action you'll want is Create Effect At Point (For Player).
Here's the map. Note that it only spawns a single marine for a given point. If you want to do cluster, set the % lower and set the amount of units spawns to be higher, or maybe make a function that you can call on to spawn a cluster instead of a single unit given a set of coordinates.
@Tudentau: Go
This create a very unnatutal look, very squarish. If i would see rocks like this in the nature then i would never ever believe the nature had made it like this. The rocks in Mineralz spawns allot more natural with allot more variation.
I asked him how he did it but i only got this as answer.
"I use a "Pick Each integer from 1 to 60", then a "Create 1 Mineral patch at a random point" and then "Create 10 rocks at the same point" There is nothing hard, its just random :)"
This would work if the rocks only where placed on a spot where the is no current rocks/minerals. If i do as he says then all minerals and rocks get stacked on each other on the same point :(
@Sherlia: Go
When i try to create 30 marines at a point then they space out directly just as it should be with the rocks, is there some datamodifications i need to make on the rocks to make this possible??
Oh, actually I forgot about random position in region function. Makes it WAY more simple.
Is this more to your liking? It's way more simple, doesn't look square, and I think will deal with your problem of rocks all stacking on the same spot.
@Tudentau: Go
Works with marines and almost with rocks... why do you insist making it with marines? I want rocks :D
Region - Move Random Spawn to Random Point
What does this do?
Ok here is an example how i would want it but with ROCKS. How to fix?
As i see it, it have something to do with that its rocks... it works with Forge, Marines and Tanks.
SOLVED! Changed the pathing footprint and now it works perfect :) (on the map i uploaded its not changed)
Just change the marines to rocks in the Create Units line.
"Region - Move Random Spawn to Random Point" is to make it create clusters correctly that look more random and avoids stacking all the rocks at the same random point. If you were to just spawn the units in one random point, it would spawn all of the units in one spot with structures (rocks) and for normal units, they would look very square.
They way I created it was so you could copy+paste it to your own map and change the numbers and stuff to be to your own liking. I originally was using Marines because Destructible Rocks were really big. It occurs to me that maybe you meant the Rock doodad, in which case you'd replace the Create Units function with whatever exists to create doodads using the same principle.
Also, to increase the density of the clusters, simply reduce the size of the Random Spawn region.