how do you create a .scr file :S

Post your scripting questions / solutions here

Moderator: Moderators

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

Post by bdbodger »

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 .
Image
Private_Ryan
Private
Posts: 9
Joined: Sun Sep 02, 2007 12:39 am
Location: dorset

Post by Private_Ryan »

tyvm! :D u just made my life easier :D


1 more thing :oops: :oops:

how do i make a wall passable, as in not solid, as in u can see it but can walk strait thru it, as in..... i think u get it... :lol:
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 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.
Tom Trude,

Image
Private_Ryan
Private
Posts: 9
Joined: Sun Sep 02, 2007 12:39 am
Location: dorset

Post by Private_Ryan »

brillient, all is well, thanks guys :D
Post Reply