Page 1 of 1
Scripts for Rotating vertical, rotating horizontal
Posted: Fri May 07, 2004 1:57 am
by HDL_CinC_Dragon
Can someone give a script to make some thing: | spin like a drill digging in the ground? One that dosnt stop and one that works on a switch?
Can someone give a script to make some thing: --- spin like the drive shaft of a car? One that dosnt stop and one that works on a switch?
For each of these please include Key: and Value: properties in this format...
_______________________________________________
(script for Drill type w/o switch)
Key:****
Value:****
Script
Description or hint for script line
_______________________________________________
(script for Drill type w/ switch)
Key:****
Value:****
Script
Description or hint for script line
_______________________________________________
(script for Drive type w/o switch)
Key:****
Value:****
Script
Description or hint for script line
_______________________________________________
(script for Drive type w/ switch)
Key:****
Value:****
Script
Description or hint for script line
Posted: Fri May 07, 2004 2:44 am
by blue60007
I can't really help you out that much but for startes, you'll need your drill to spin around and move down at the same time. I'm sure you already knew that though...
Posted: Fri May 07, 2004 2:49 am
by lizardkid
no code, but some ideas for it...
you'll need it to spin (probably rotatex or rotatey) and go up and down at the same time. (dunno that one) so you'll need some hefty trial and error before you can get it to spin and up and down at the same time. i suggest making it another script file and exec'ing it. use global.
blue? was that you who said 'i don't script'?
Posted: Fri May 07, 2004 3:20 am
by kai0ty
well for the drill u could make an animated texture to save some script lines, then just
$drill moveto $drill_location
$drill time 3 (or whatever)
$drill move
Posted: Fri May 07, 2004 8:26 am
by fuhrer
ive tried moving and rotating something at the same time, with no success im only a beginnger scripter tho im sure someone can pull it off
Posted: Fri May 07, 2004 8:42 am
by lizardkid
lol, i could name one guy who could pull it off but he's working on bots and who knows how much other stuff right now.
well, you could try making stuff simple and have two waypoints (or more) vertical each other and rotate the drill. so..
$drill moveto waypoint1
waittil movedone
$drill moveto waypoint2
with a while loop going on in the background, i suppose the best way to do that would be to make a separate script for that. like
exec global/script.scr
and that keeps it going throughout the whole map.
whew, hope this helps.
gods it's 3:00 am...
Posted: Fri May 07, 2004 9:51 am
by Mj
I'm not a scripter, but i know some basics, how about,
$drill_blades rotateXXX
Bind $drill_shaft $drill
Bind $drill_blades $drill
$drill moveXXX or $drill moveto $drill_target
Could work...
Posted: Fri May 07, 2004 9:54 am
by tltrude
(script for Drill type w/o switch)
Key: rotateY
Value: 150
(script for Drive type w/o switch)
Key: rotateX // or rotateZ
Value: 50
Value numbers set the speed of rotation. Nothing needs to be in the script but, if you want to do it there, just do this.
$my_drill rotateY 150 // to start it
$my_drill move
$my_drill rotateY 0 // to stop it
$my_drill move
I'm not sure if the "move" lines are really needed.
Posted: Fri May 07, 2004 4:57 pm
by blue60007
Actually it won't have to move down at the same time, just build the bit so it looks like one and you'll get that effect.
btw lizardkid, I don't think I said that, I do scirpt (somewhat)...
Posted: Fri May 07, 2004 8:20 pm
by HDL_CinC_Dragon
lol, when I said "drill" I didnt ACTAULLY mean a drill, i just meant It want a vertical pole to spin basically

and same with the "drive shaft" one, i just want a horizontal pole to spin. Sorry i wasnt clear enough but i couldnt find the right words to describe it at the time

.
Tom:
Are you saying that all i need is to select it, and put:
Key:Rotate (x,y,z)
Value: 150
This will make it keep spinning right? and not stop?