Post your scripting questions / solutions here
Moderator: Moderators
digitac
Sergeant
Posts: 58 Joined: Mon Jul 28, 2003 3:30 pm
Post
by digitac » Thu Jan 15, 2004 9:32 pm
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
Rindog
Corporal
Posts: 29 Joined: Wed Sep 24, 2003 6:34 pm
Post
by Rindog » Thu Jan 15, 2004 10:53 pm
Try removing the double quotes in the origin line.
digitac
Sergeant
Posts: 58 Joined: Mon Jul 28, 2003 3:30 pm
Post
by digitac » Thu Jan 15, 2004 10:54 pm
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
digitac
Sergeant
Posts: 58 Joined: Mon Jul 28, 2003 3:30 pm
Post
by digitac » Fri Jan 16, 2004 12:32 am
Tried that but nogo
omniscient
Major General
Posts: 694 Joined: Tue Sep 16, 2003 12:02 am
Post
by omniscient » Fri Jan 16, 2004 12:43 am
give it a target name and say
digitac
Sergeant
Posts: 58 Joined: Mon Jul 28, 2003 3:30 pm
Post
by digitac » Fri Jan 16, 2004 12:50 am
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
)
omniscient
Major General
Posts: 694 Joined: Tue Sep 16, 2003 12:02 am
Post
by omniscient » Fri Jan 16, 2004 12:53 am
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
Rindog
Corporal
Posts: 29 Joined: Wed Sep 24, 2003 6:34 pm
Post
by Rindog » Fri Jan 16, 2004 1:24 am
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
Gold
First Lieutenant
Posts: 176 Joined: Sun Sep 28, 2003 8:10 pm
Post
by Gold » Fri Jan 16, 2004 8:42 pm
Is it possible to spawn a ladder so ya can climb the tree like the climable tree in gewitter??
Gold<<mohha freak
LiTe
Corporal
Posts: 34 Joined: Sat Dec 13, 2003 1:07 pm
Contact:
Post
by LiTe » Fri Jan 16, 2004 9:16 pm
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.
33rd[SS]SCpl.*LiTe*|AD|SP|
"Casualties many; Percentage of dead unknown; Combat efficiency; we're winning."
- Colonel David M. Shoup
WarTech
Colour Sergeant
Posts: 88 Joined: Mon May 05, 2003 3:15 am
Post
by WarTech » Fri Jan 16, 2004 9:39 pm
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
omniscient
Major General
Posts: 694 Joined: Tue Sep 16, 2003 12:02 am
Post
by omniscient » Fri Jan 16, 2004 11:42 pm
if u have the map file u can make anything a ladder. as far as spawning a ladder i dont thinks its possible.
bdbodger
Moderator
Posts: 2596 Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:
Post
by bdbodger » Sat Jan 31, 2004 3:21 pm
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 ?