spawning a tree

Post your scripting questions / solutions here

Moderator: Moderators

digitac
Sergeant
Posts: 58
Joined: Mon Jul 28, 2003 3:30 pm

spawning a tree

Post 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
Rindog
Corporal
Posts: 29
Joined: Wed Sep 24, 2003 6:34 pm

Post by Rindog »

Try removing the double quotes in the origin line.
digitac
Sergeant
Posts: 58
Joined: Mon Jul 28, 2003 3:30 pm

Post 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 :)
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

Code: Select all

local.tree = solid
maybe?
Image
digitac
Sergeant
Posts: 58
Joined: Mon Jul 28, 2003 3:30 pm

Post by digitac »

Tried that but nogo
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

give it a target name and say

Code: Select all

$tree solid
Image
digitac
Sergeant
Posts: 58
Joined: Mon Jul 28, 2003 3:30 pm

Post 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 :) )
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post 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 :D
Image
Rindog
Corporal
Posts: 29
Joined: Wed Sep 24, 2003 6:34 pm

Post 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
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

spawning a tree

Post by Gold »

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 »

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

Re: spawning a tree

Post 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 :wink:

<TWZ>WarTech
Frag like a manic :twisted:
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post 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.
Image
Rindog
Corporal
Posts: 29
Joined: Wed Sep 24, 2003 6:34 pm

Post by Rindog »

I have discovered a way to spawn ladders if anyone is interested.

http://modtheater.com/forum/showthread. ... 120&page=2
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 ?
Post Reply