Drawbridge

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
walks
Corporal
Posts: 32
Joined: Thu Mar 16, 2006 10:04 pm

Drawbridge

Post by walks »

Anyone know how to manipulate a door to become a drawbridge?
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

Give the bridge an origin, that's for the rotating point. Give the bridge and the origin a targetname.

Use this in the .scr (the values are in degrees):

$target rotatexup (value) // This will rotate the x up
$target rotatexdown (value) // This will rotate the x down

You can also use other axisses ofcourse like rotatey and rotatez

As an example, you can have a look at my pegasus bridge
http://www.fileplanet.com/dl.aspx?/plan ... egasus.pk3
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

At0miC wrote:Give the bridge an origin, that's for the rotating point. Give the bridge and the origin a targetname.
To do that you will need to make it a script_object .
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

bridge

Post by tltrude »

There is a small drawbridge in this tutorial map that you can copy.

http://smallsumo.punkassfraggers.com/tl ... bient2.zip
Image
Tom Trude,

Image
User avatar
walks
Corporal
Posts: 32
Joined: Thu Mar 16, 2006 10:04 pm

Post by walks »

At0miC - Is this for a manually operated or automatic bridge?

I am trying to use this like a door where it can be manually opened downwards but then closes back upwards after a period of time.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

If you want it straight up and down then you can do it like a door but if you want it to rotate down sorry can't be done without a script .
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

bridge

Post by tltrude »

I think what Bdbodger is trying to say is, if you want it to move streight down and streight up, you can use a func_door. But, a func_rotatingdoor can not be used as a drawbridge.
Tom Trude,

Image
Post Reply