Page 1 of 1

fan help?

Posted: Sun May 18, 2003 5:26 am
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

Posted: Sun May 18, 2003 8:30 am
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 .

Posted: Sun May 18, 2003 8:33 am
by jv_map
Lol another one: waittil should be waittill :!: :wink:

Posted: Mon May 19, 2003 2:18 am
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?

Posted: Mon May 19, 2003 3:58 am
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.