fan help?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply

How long will MOH stay alive?

1-3 years
6
55%
4-6 years
1
9%
7-9 years
1
9%
FOREVER!!!!
3
27%
 
Total votes: 11

User avatar
aLpHa2
Lance Corporal
Posts: 14
Joined: Sun Apr 27, 2003 3:40 am

fan help?

Post by aLpHa2 »

ok i follow the fan tut on this site and when i put everything into the script it doesnt spin

//MAP NAME: AdvancedMap2
//ARCHITECTURE: aLpHa2
//SCRIPTING: aLpHa2
main:
exec global/ai.scr
exec global/loadout.scr maps/dm/AdvancedMap2.scr
exec global/friendly.scr

level waittil prespawn
exec global/ambient.scr AdvancedMap2
exec global/weather.scr

level waittil spawn
level.script = "maps/dm/AdvancedMap2.scr"
thread fan1
end

fan1:
$blade1 bind $fan1
$blade2 bind $fan1
$blade3 bind $fan1
$blade4 bind $fan1
$fan1 rotatey 325 // the number indicates the speed of the fans rotation. Use -325 to rotate the fan the other way.
end

it doesnt work
what is the prob?
P.S. I also did the script_object stuff
In a battle never ever look back. If you ever need help drop but dont stop. Keep going! A battle is not won over the luck if you shoot someone or if they shoot you its about the men beside you. They help you, they put pride in you, and they guide you.

This is to my Bro that was lost in Desert Storm.

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

Post by bdbodger »

You need to add a move command after the $fan1 rotatey 325
.
fan1:
$blade1 bind $fan1
$blade2 bind $fan1
$blade3 bind $fan1
$blade4 bind $fan1
$fan1 rotatey 325 // the number indicates the speed of the fans rotation. Use -325 to rotate the fan the other way.
$fan1 move
end
Do you need to bind all the parts later why not just make it from brushes choose all the parts and then select script_object from the menu and give it just one Targetname . If you where makeing a larger object that does not spin in the middle you can make a part that has the origin texture on it and choose all the parts includeing the origin brush and make that a script object and your object will spin around with the origin brush as its piviot point .
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Lol another one: waittil should be waittill :!: :wink:
Image
User avatar
aLpHa2
Lance Corporal
Posts: 14
Joined: Sun Apr 27, 2003 3:40 am

Post by aLpHa2 »

lol whoops

o ya and my uncle told me that in order for the fan to work dont u have to put a trigger at the player start?

target/fan1?
In a battle never ever look back. If you ever need help drop but dont stop. Keep going! A battle is not won over the luck if you shoot someone or if they shoot you its about the men beside you. They help you, they put pride in you, and they guide you.

This is to my Bro that was lost in Desert Storm.

UNITY.BROTHERHOOD.PEACE
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

fan1:
$blade1 bind $fan1
$blade2 bind $fan1
$blade3 bind $fan1
$blade4 bind $fan1
$fan1 rotateY 360
$fan1 move
end


You can also just put:

Key: rotateY
Value: 360

right in the properties of the script_object ($fan1). Then you would not need to script it at all. Unless you want the blades to do something different from the fan hub, they can be part of the $fan1 script_object as well.
Tom Trude,

Image
Post Reply