I assume you have a ceiling fan ? The easiest way to do it is not to script it at all . Make your fan and put a brush with the origin texture on it at the very center . Now select all the brushes of the fan including the origin brush and make them a script_object . Press N to open the entity window and give it the key: rotatey and value: 360 or what ever value you want . Thats it the fan will work with no scripting at all . For what you have it should work if you have the right targetnames but you should change the rotatex to rotatey if it is in fact a ceiling fan if not the use rotatex or rotatez . Just in case you don't already know .
Rotation values forward is the yaw angle
X Rotates forward and down -> Pitch
Y Rotates left on the horizontal plane -> yaw
Z Rotates to the left and down -> roll
Use negative value to change the direction of the rotation .
how do you create a .scr file :S
Moderator: Moderators
-
Private_Ryan
- Private
- Posts: 9
- Joined: Sun Sep 02, 2007 12:39 am
- Location: dorset
script_object
Turn the wall brush into a script_object and click on the NOT_SOLID Spawnflag. To do that, you highlight the script_object brush and press key "N" to bring up its entity window. Then you'll see the NOT_SOLID check box.
-
Private_Ryan
- Private
- Posts: 9
- Joined: Sun Sep 02, 2007 12:39 am
- Location: dorset

