If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here
Moderator: Moderators
MasterMind
Major
Posts: 316 Joined: Thu Jul 15, 2004 12:10 am
Post
by MasterMind » Thu Aug 05, 2004 8:43 pm
Is there any way to change the fan speed??
Should this be posted in scripting?
bdbodger
Moderator
Posts: 2596 Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:
Post
by bdbodger » Thu Aug 05, 2004 9:24 pm
What fan ?
MasterMind
Major
Posts: 316 Joined: Thu Jul 15, 2004 12:10 am
Post
by MasterMind » Thu Aug 05, 2004 9:27 pm
fans you build on maps. I ment a fan not the fan on the other post, sorry.
hogleg
General
Posts: 1577 Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country
Post
by hogleg » Thu Aug 05, 2004 9:56 pm
Turn it into a script_object and add the following key/value to the entity.
key: rotateY
Value: 360
Or just use the rotatingdoor func and add those values.
"all the governments in the world are corrupt and in the hands of the Illuminati"
MasterMind
Major
Posts: 316 Joined: Thu Jul 15, 2004 12:10 am
Post
by MasterMind » Thu Aug 05, 2004 10:26 pm
What do you mean hogleg, how does that change the speed of a fan. Fans are script_objects.
blue60007
General
Posts: 1247 Joined: Sun Mar 07, 2004 11:44 pm
Post
by blue60007 » Thu Aug 05, 2004 11:04 pm
OK if your fan is a script_object and say it's targetname is $fan, then in the script (not the entity window, I'm not sure if that works), put
$fan rotateY 360
Then you can change that number to whatever speed you want. Also depending on the angle of fan (cielingor wall) you can make it Y X Z one of those.
hogleg
General
Posts: 1577 Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country
Post
by hogleg » Fri Aug 06, 2004 12:12 am
I usually make my fans from the rotating door function. Not scripted.
Just give it an origin to spin on and put in those values.
"all the governments in the world are corrupt and in the hands of the Illuminati"
MasterMind
Major
Posts: 316 Joined: Thu Jul 15, 2004 12:10 am
Post
by MasterMind » Fri Aug 06, 2004 12:16 am
That would work, but wouldn't you have to press the use key to turn it on?
Balr14
Colonel
Posts: 450 Joined: Sat Aug 03, 2002 4:01 am
Location: Germantown, WI, USA
Post
by Balr14 » Fri Aug 06, 2004 1:50 am
It's much more economical to make fan blades from one transparent texture with rotating animation set in the shader.
lizardkid
Windows Zealot
Posts: 3672 Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT
Post
by lizardkid » Fri Aug 06, 2004 2:32 am
no MAstermind. use key is only for doors, use triggers, and pickupables. like dropped guns.
lol i always do my fans from scripting. all this nonsense to get out of scripting with these elevators that are really doors, fans that are just rotating doors... lol it's almost pitiful.
blue60007
General
Posts: 1247 Joined: Sun Mar 07, 2004 11:44 pm
Post
by blue60007 » Fri Aug 06, 2004 2:37 am
Balr14, you're right but that's really to complicated for a simple fan, besides it'd only be 2d anyways.
Lizardkid, it's a lot easier like you said with scripting gives you MUCH more control, easier to test speed/angle just change and save rather than change, save, compile, etc etc... I agree with those last points