help with moveto
Moderator: Core Staff
-
- CJ Fan
- Posts: 138
- Joined: July 14th, 2007, 8:53 pm
- Location: New Jersey
- Contact:
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
http://codjumper.com/forums/viewtopic.php?t=2963
some posts down is an example with moveto from Luke
some posts down is an example with moveto from Luke
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
-
- Core Staff
- Posts: 7762
- Joined: April 23rd, 2005, 9:12 pm
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
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
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.
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);
Code: Select all
platform waittill ("movedone");
-
- CJ Fan
- Posts: 138
- Joined: July 14th, 2007, 8:53 pm
- Location: New Jersey
- Contact:
-
- CJ Fan
- Posts: 138
- Joined: July 14th, 2007, 8:53 pm
- Location: New Jersey
- Contact:
-
- Past/Inactive Team Member
- Posts: 1774
- Joined: May 31st, 2005, 12:42 am
- Location: Cornwall, UK
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.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?
Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php
-
- CJ Fan
- Posts: 138
- Joined: July 14th, 2007, 8:53 pm
- Location: New Jersey
- Contact:
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
-
- CJ Fan
- Posts: 138
- Joined: July 14th, 2007, 8:53 pm
- Location: New Jersey
- Contact:
-
- Site Admin
- Posts: 15914
- Joined: October 15th, 2004, 7:18 pm
- Location: UK