Page 1 of 2
spawning a tree
Posted: Thu Jan 15, 2004 9:32 pm
by digitac
Hi guys i try to spawn a tree using a script
Code: Select all
local.tree.model = spawn static/tree_oak.tik
local.tree.origin = "( -2041 -3512 30 )"
local.tree.angle = -180
local.tree.scale = 1.0
local.tree solid
But the tree spawns at 0 0 0 ?
*edit and is not solid
thnx DigitaC
Posted: Thu Jan 15, 2004 10:53 pm
by Rindog
Try removing the double quotes in the origin line.
Posted: Thu Jan 15, 2004 10:54 pm
by digitac
Did that done that
Yeah i found that out myself but now the hard part

how can i make the tree so that u cannot walk trough it

Posted: Fri Jan 16, 2004 12:20 am
by omniscient
Posted: Fri Jan 16, 2004 12:32 am
by digitac
Tried that but nogo
Posted: Fri Jan 16, 2004 12:43 am
by omniscient
give it a target name and say
Posted: Fri Jan 16, 2004 12:50 am
by digitac
hmmm can try to do that thnx
edit.
Well it works but it's now not solid the whole size ( so till where the leaves are

)
Posted: Fri Jan 16, 2004 12:53 am
by omniscient
is the trunk solid or the leaves. the leaves are never solid unless u clip them usually. if ur talking about the trunk not being solid, then i dont know what to do

Posted: Fri Jan 16, 2004 1:24 am
by Rindog
Try spawning a script_model first and then set the model.
local.tree = spawn script_model
local.tree model "static/tree_oak.tik"
local.tree.origin = ( -2041 -3512 30 )
local.tree.angle = -180
local.tree.scale = 1.0
local.tree solid
spawning a tree
Posted: Fri Jan 16, 2004 8:42 pm
by Gold
Is it possible to spawn a ladder so ya can climb the tree like the climable tree in gewitter??
Gold<<mohha freak
Posted: Fri Jan 16, 2004 9:16 pm
by LiTe
I dunno about a ladder, but you could spawn a trigger that will bring you up to the top of the tree or move you up inch by inch and use the climbing animation...I'm not good with this stuff, but just an idea.
Re: spawning a tree
Posted: Fri Jan 16, 2004 9:39 pm
by WarTech
digitac wrote:Hi guys i try to spawn a tree using a script
Code: Select all
local.tree.model = spawn static/tree_oak.tik
local.tree.origin = "( -2041 -3512 30 )"
local.tree.angle = -180
local.tree.scale = 1.0
local.tree solid
But the tree spawns at 0 0 0 ?
*edit and is not solid
thnx DigitaC
Here is your tree code
local.static = spawn script_model
local.static model "static/tree_oak.tik"
local.static.origin = ( -2041 -3512 30 )
local.static.angles = ( 0 0 0 )
local.static setsize "-16 -16 0" "16 16 180"
local.static solid
enjoy making a forest
<TWZ>WarTech
Frag like a manic

Posted: Fri Jan 16, 2004 11:42 pm
by omniscient
if u have the map file u can make anything a ladder. as far as spawning a ladder i dont thinks its possible.
Posted: Sat Jan 31, 2004 2:34 pm
by Rindog
I have discovered a way to spawn ladders if anyone is interested.
http://modtheater.com/forum/showthread. ... 120&page=2
Posted: Sat Jan 31, 2004 3:21 pm
by bdbodger
I seen that post ringdog . Have you tried it in mohaa or only in SH . Did you try to spawn more than one pathnode and use the leveldesign menu to see if they where connected ?