Make a constant spin using func/rotating_door

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
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Make a constant spin using func/rotating_door

Post by hogleg »

Is it possible to make lets say a propeller spin constantly using the rotating_door function?

I'm a noob at this and I'm not familuar with scripting... :oops:

I made it spin when u hit the use key but that kinda sucks!

Thx again
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Script_object

Post by tltrude »

Turn it into a script_object and add the following key/value to the entity.

key: rotateY
Value: 360

If "Y" does not make it spin the right way, try "X" or "Z". The number is how meny degrees it will rotate per second. A negitive number will make it rotate the other direction. Here is a tutorial map for a ceiling fan.

http://pages.sbcglobal.net/tltrude/Temp/fan3.zip

Image
Tom Trude,

Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

If you need an object to spin but not in the middle add a brush with the origin texture on it to the script object and it will spin around that . Just add it before you make it a script object or use add to entitiy from the selection menu to do it after .
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Re: Make a constant spin using func/rotating_door

Post by TheStorm »

mywifeispissed wrote:Is it possible to make lets say a propeller spin constantly using the rotating_door function?

I'm a noob at this and I'm not familuar with scripting... :oops:

I made it spin when u hit the use key but that kinda sucks!

Thx again
Yes you can do exactly that!!
http://www.modtheater.com/forum/showpos ... ostcount=1
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

If you select it and right click on the 2d window and select script ->script_object and add the keys in tltrude's post that is all you will have to do no script needed .
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

Thanks Ya'll, I'm going to try your suggestions tonight!

:mrgreen:
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

The Storm's suggestion is the easiest, Thanks.

Works great!
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I don't know how you can say it is easier I mean it is func_rotateing door instead of a script_object . For a script_object you don't have to add a origin brush it will spin around it's center . You can add an origin brush if you want to rotate around it instead . Other than that for the rotateing door you have to add a key not player that you don't have to add for a script object . The keys and values are the same for both . So I can't say one is any easier than the other just different . I guess next you will want to make an elevator from a func_door . Key angle value -1 . :D
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

Allready did!
"all the governments in the world are corrupt and in the hands of the Illuminati"
Post Reply