Like the title says I want to hide trees and things in areas that I put buildings, but I need to be able to do so in the shape of either rectangles or ellipses.
Initially I was given this by Wurstkette, who has been a huge help, but it only hides in the shape of circles:
Can anyone help me make them ellipses or rectangles? It would be a massive help.
Also I am trying to do grass too. I dont know if its as simple as putting "GRASS" in that list, but if anyone knows another way let me know. Thats the only thing I havent actually tried to do yet.
Hey guys,
Like the title says I want to hide trees and things in areas that I put buildings, but I need to be able to do so in the shape of either rectangles or ellipses.
Initially I was given this by Wurstkette, who has been a huge help, but it only hides in the shape of circles:
/////////////////////////////////////////////////////////////////
_location=[X,Y,Z];
_objects=["TREE", "SMALL TREE", "BUSH", "FOREST BORDER",
"FOREST TRIANGLE", "FOREST SQUARE", "BUNKER", "FORTRESS", "QUAY",
"HIDE", "FOREST", "STACK", "TOURISM", "WATERTOWER", "ROCK", "ROCKS"];
_radius=10; //radius in meters
_terrainobjects=nearestTerrainObjects [_location,_objects,_radius]; {hideObjectGlobal _x} foreach _terrainobjects;
///////////////////////////////////////////////////////////////
Can anyone help me make them ellipses or rectangles? It would be a massive help.
Also I am trying to do grass too. I dont know if its as simple as putting "GRASS" in that list, but if anyone knows another way let me know. Thats the only thing I havent actually tried to do yet.
Share this post
Link to post
Share on other sites