Posted: Sun Sep 02, 2007 3:10 pm
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 .
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 .