spawning a tree

Post your scripting questions / solutions here

Moderator: Moderators

Rindog
Corporal
Posts: 29
Joined: Wed Sep 24, 2003 6:34 pm

Post by Rindog »

I have only tried this in SH.

As for the pathnode, I only spawn one, but when I did it created a .pth file and I could see it with the leveldesign menu. I didnt mess around with it a whole lot with it because I was concentrating on the ladder.
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Post by yuppicide »

Awesome. I'm going to try adding my own ladder to a map.
BiG_HeaD
Brigadier General
Posts: 531
Joined: Thu Jul 03, 2003 7:28 pm

Post by BiG_HeaD »

hey, i was just wondering, whats the point of spawning a tree? is it for a stock map?
Ive played more than u.
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

Post by Gold »

well maybe someone could spawn a tree in a stock map,,,attach a ladder to the tree so ya could climb the tree,,,at top of tree maybe spawn a base to stand on ,,,then maybe spawn something like a wood plank to walk across,,,i know there isnt a tik for the wood plank but ya could probally use something to substitute a plank,,then maybe spawn another tree with the same set up as above ,,on maybe the other side of a piece of barbwire that ya cant remove from a stock map due to brushs i think so ya could access a area or cross a area that be4 couldnt be crossed...hint hint Bighead lol,,,does hunt ring a bell?? lol,,also if ya check the posts ringdog has already figured out how to make a flag ya can climb like a ladder guess if ya use the hide command and place it against the right tree ya could climb a tree or maybe even fences?? lol,,,sounds like something that may be kina fun and different to me anyways,,i recently downloaded and played a map that had a climable fence ,,i thought it was pretty kewl myself:))
Gold<<mohha freak

Gold<<mohha freak
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Re: spawning a tree

Post by WarTech »

Gold wrote:Is it possible to spawn a ladder so ya can climb the tree like the climable tree in gewitter??
Gold<<mohha freak

Yes

Regards
<TWZ>WarTech
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Well since it looks like we've revived this from the dead...


Actually you can only spawn entities/models. You can't spawn brushes, so you'd have an invisible ladder, but even then I don't think you can spawn brush entities. Like func > ladder, because I don't know of anyway to spawn the actual brush. But you can certainly spawn a tree. :wink:
Image
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Post by WarTech »

blue60007 wrote:Well since it looks like we've revived this from the dead...


Actually you can only spawn entities/models. You can't spawn brushes, so you'd have an invisible ladder, but even then I don't think you can spawn brush entities. Like func > ladder, because I don't know of anyway to spawn the actual brush. But you can certainly spawn a tree. :wink:
Hi there:

Yes, you can spawn a ladder ,brush , etc all via scripts. This will be in TWZ/OTD mod once we release it to the public.

Code:

spawn info_pathnode "targetname" "testing" "origin" "( 1073 -1040 -71 )"

spawn script_object "targetname" "clipbrush" "origin" "( 1073 -1040 -71 )"
$clipbrush.model = "static/static_nazibanner1b.tik"
$clipbrush show
$clipbrush setsize ( 0 0 0) ( 1 65 275)
$clipbrush.angles = ( 0 0 0 )
$clipbrush solid

spawn script_object "targetname" "tl1" "classname" "func_ladder" "origin" "( 1073 -1040 -71 )" "angle" "0" "model" "*clipbrush"
$tl1 setsize ( 0 0 0) ( 1 65 275)"


This is an example that has been around the forums for some time now.

Regards
<TWZ>WarTech
Rindog
Corporal
Posts: 29
Joined: Wed Sep 24, 2003 6:34 pm

Post by Rindog »

Actually, that pathnode is not needed for the ladder. I included it with my original post as another example.
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Well so you can spawn brushes that are made into a model, via tiki. But can you make a script object a func_ladder?
Image
WarTech
Colour Sergeant
Posts: 88
Joined: Mon May 05, 2003 3:15 am

Post by WarTech »

blue60007 wrote:Well so you can spawn brushes that are made into a model, via tiki. But can you make a script object a func_ladder?
The TIK is only so the players can see that there is something there but the func_ladder is there and you can climb it with/without the tik. It works very well in SH.

You can spawn a tree next to it and it will allow the players to go up it.

Regards
<TWZ>WarTech
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

That's cool, I didn't know that. :oops:
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

uuuum, has anyone else spotted that he wants to make it walkthroughable, and he's making it solid? try

$tree notsolid

it works with hedgehogs right?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply