Scripts for Rotating vertical, rotating horizontal

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply

Is this too much to ask of scripters

Yes
0
No votes
No
1
33%
It will take a little time
1
33%
I myself don't know scripting
1
33%
 
Total votes: 3

User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Scripts for Rotating vertical, rotating horizontal

Post 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
Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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...
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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'?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post 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
fuhrer
Captain
Posts: 253
Joined: Sun Mar 14, 2004 3:36 am

Post 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
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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...
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post 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...
ImageImage
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post 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.
Tom Trude,

Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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)...
Image
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post 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?
Image
Post Reply