Page 1 of 1
One (singular) Tree commands?
Posted: Sat Aug 19, 2006 6:25 am
by DvdGStwrt
I would like to plant a (one, singular, individual) tree and it stay right in the spot that I plant it.
Is this possible? if so what it the command to plant a (one singular, individual) tree?
Conversly, If I want to remove a (one singular, indiidual) tree what is the command for that?
Posted: Sat Aug 19, 2006 8:35 am
by Fooli
Using .plantforest you can add a single tree more or less where you're standing:
.plantforest [radius] [number of trees] [tree type]
So you could try .plantforest 1 1 1 to put a single tree 1 down near where you're standing. There's no way to remove a single tree planted this way, however. You can only remove all trees (*delallmap 1)
Another option: using .treeline:
.treeline (NUM_TREES) (TYPE)
Which adds a line of trees along the line drawn with 'Start Line'. Again you could use this to put one tree down. However, as above, I don't think there's a command to remove one single tree line - I think you can only remove all of them (*delallmap 2) This sounds odd to me... if you can remove lines of walls you ought to be able to remove lines of trees...but the docs seem to confirm it.
Or you could use background models: as above, lay them with Start Line. I've just tested this and I managed to lay a single background model with start line, then .destroy it, and after a *clearlostbuildings it seems to have gone - so that might be one option for you. Background models also obey global collision rules, which might be useful.
Finally... you could use building models to add trees to the landscape. Advantage is they can use collisions, and generate noises if you want (twittering birds, I dunno), and you get full control over where they go (you can rotate them, demolish them etc).
Disadvantage is they're a lot more fiddly: you'll need to set up each type of tree as an ornamental building in your bdat, assign the model & texture in the buildings editor, and then lay all the trees individuallly.
f
Posted: Sat Aug 19, 2006 6:15 pm
by DvdGStwrt
Hm. I take it this is why there is a lack of trees on most worlds.
If I use the building method is there an upper limit of buildings one can have on a planet as ornamental? I know there is a limit on other stuff (forget the name, I think 3 K).
I will use forest in the "wilderness" areas, but I wanted to plant individual trees in towns, near roads, etc.
Posted: Sat Aug 19, 2006 8:06 pm
by zaroba
the lack of trees is probably just due to people not knowing the command.
if thiers a limit of buildings, its probably the same as the limit of trees, which is 32k