One (singular) Tree commands?

Forum Archive - from http://theuniversal.net
Locked
User avatar
DvdGStwrt
Posts: 184
Joined: Fri Jul 28, 2006 11:12 pm
Location: Central California

One (singular) Tree commands?

Post 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?
User avatar
Fooli
Staff
Staff
Posts: 1957
Joined: Sun Oct 05, 2003 2:38 pm
Location: Mars

Post 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
User avatar
DvdGStwrt
Posts: 184
Joined: Fri Jul 28, 2006 11:12 pm
Location: Central California

Post 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.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post 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
Locked