Page 1 of 1

help with moveto

Posted: July 31st, 2007, 10:45 pm
by Deadly
i just need to know how to set up a move to script. thats all. =]

Posted: July 31st, 2007, 10:51 pm
by waywaaaard
http://codjumper.com/forums/viewtopic.php?t=2963

some posts down is an example with moveto from Luke

Posted: July 31st, 2007, 10:56 pm
by Soviet
take a look at this link

viewtopic.php?t=2963&start=0

its not the exact moveto command but it can help, heres how the moveto command works basically

Code: Select all

platform moveto ((50,100,150), 2,0.5,0.5); 
the platform is the targeted entity. moveto is your command followed by two sets of the ()'s. The 2nd inside ()'s designate the movement. The first number is x, the second is y, the third is z. So this platform will move 50 units to the east, 100 units north, and 150 units up. The 2nd numbers outside of that set of ()'s are the speed, acceleration and deceleration. So, the platform takes 2 seconds to travel that distance, spends .5 seconds both accelerating from a standstill to max speed and decelerating from max speed to a standstill again. So, a basic script would be just like the one in the link using the moveX moveY and moveZ commands except in place of those commands you would simply use moveto. If you decide to use the moveX commands instead of moveto, be sure to put the line

Code: Select all

platform waittill ("movedone");
right after the movement command to ensure that no one can glitch the platform. That isn't necessary with the moveto command if i'm remembering correctly.

Posted: July 31st, 2007, 11:03 pm
by Deadly
yeah yeah yeah. ok i get it i can add more to that. lol thanks

Posted: July 31st, 2007, 11:04 pm
by Deadly
but aculy i wanted it to go at an angle so i would do it normal x or y axis but the z diffrent?

Posted: July 31st, 2007, 11:51 pm
by Luke
Deadly wrote:but aculy i wanted it to go at an angle so i would do it normal x or y axis but the z diffrent?
Try it. If you put a value in the Z axis you can move it up or down. The way Soviet described it is when you don't use an origin brush with the brushmodel. If you use an origin brush then the x, y, z values it moves to will be the actual coordinates in the map.

Posted: August 1st, 2007, 12:29 am
by Deadly
i mean like a slant like this \

going down the slant

Posted: August 1st, 2007, 12:29 am
by Drofder2004
IMHO, the best link, is here...

Clicky Here ;)

Posted: August 1st, 2007, 1:06 am
by Deadly
lol. ok

Posted: August 1st, 2007, 6:44 pm
by Pedsdude
Deadly wrote:i mean like a slant like this \

going down the slant
It moves from the starting co-ordinates to the finishing co-ordinates and does so in a straight line, so if you gave it co-ordinates which had two different values for two of X, Y and Z then it'll move in a slant anyway...