scripting: moveto

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

scripting: moveto

Post by creator » August 8th, 2006, 2:32 am

is there a scripting tut about:
moveto?
or can anyone post a moveto script here
so i can try figure out how it works?
(learning scripting)
i can do the basics
Cod 1 Mapper&Modder&Moddeler

User avatar
Marshall
CJ Spammer!
CJ Spammer!
Posts: 820
Joined: December 10th, 2005, 11:28 am
Location: UK

Post by Marshall » August 8th, 2006, 7:54 am

ok here you go:-

First off create ure brush (size, length ect), then before u convert it to brushmodel, add a 1x1 brush inside it, and texture it tools>origin...

Then convert them both to brushmodel, (remembering to make them 1 brushmodel)

This means you can now move the origin to the point u want to, and not have to guess where the platform is going to go..


then place this in ure gsc:-

(im sure ure cabable of knowing where to edit the script :wink: )

Code: Select all

main()
{
thread door_slider ();
}

door_slider ()
{
door = getent ("slide ", "targetname”);
trig = getent ("slider_trigger ", "targetname”);
while (1)
{
trig waittill ("trigger");
door moveto  ((100,200,300), 1); ///// ure brush will move to them co-ordinates in one second
door waittill ("movedone”);
wait (4);
door moveto ((120,220,320), 1);  //// ure brush will move to them co-ordinates in one second
door waittill ("movedone”);
}
}



Hope i helped..

For more info visit http://www.modsonline.com



Marshall

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » August 8th, 2006, 9:49 am

You don't need the origin brush for that script, not unless you're rotating something or defining origins in the script.
And just to make it easier for you to understand ((100,200,300), 1); the first 3 numbers represent x,y,z so what thats actually doing is moving 100 units on the x axis, 200 on y, 300 on z. all at the same time.

User avatar
Marshall
CJ Spammer!
CJ Spammer!
Posts: 820
Joined: December 10th, 2005, 11:28 am
Location: UK

Post by Marshall » August 8th, 2006, 9:55 am

well

i assumed he would know where the co-ordinates (very basic script knowledge)

and by adding the origin brush, u can be clear of the exact end position of the brush..



Marshall

p.s please read http://www.modsonline.com/Tutorials-read-121.html

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 8th, 2006, 9:46 pm

no i didnt knew that
cause i always used

movex
movey
movez

so know im trying to learn more scripting commands :)
Cod 1 Mapper&Modder&Moddeler

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 9th, 2006, 1:09 am

Marshall wrote:texture it tools>origin
i think u mean:
common/origin
Cod 1 Mapper&Modder&Moddeler

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » August 9th, 2006, 1:15 am

creator wrote:
Marshall wrote:texture it tools>origin
i think u mean:
common/origin
Yep, for CoD2 its tools<origin, vCod press S and type "common/origin" (without "")
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 9th, 2006, 1:19 am

drofder
can u share ur "scripting technologie" with me:)
(deleting a brush and let it respawn again)?
cant keep this secret for ever!
:(
Cod 1 Mapper&Modder&Moddeler

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » August 9th, 2006, 1:23 am

creator wrote:drofder
can u share ur "scripting technologie" with me:)
(deleting a brush and let it respawn again)?
cant keep this secret for ever!
:(
Why delete it when you can just hide it?

brush notsolid(); //delete
brush hide();
wait 5;
brush solid();
brush show(); // respawn

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 9th, 2006, 1:26 am

luke can u add my x fire?
milkshakee
or msn
creator-mapper@hotmail.com
i wana ask u something about it
not on here (causes spam)
Cod 1 Mapper&Modder&Moddeler

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » August 9th, 2006, 1:51 am

creator wrote:not on here (causes spam)
He has got a PM box ;)
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 9th, 2006, 1:54 am

lol same as emailing to
luke@codjumper.com
:(
Cod 1 Mapper&Modder&Moddeler

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 9th, 2006, 1:55 am

Luke wrote: brush notsolid(); //delete
brush hide();
wait 5;
brush solid();
brush show(); // respawn
oooooohhhh drofder :) baby :P
u know how this works :)?
if yes please explane it to me :(
and can u tell me how to make like walls half a circle
in cod1)
and no i dont want to make a cylinder

or luke)
or anyone else)
Last edited by creator on August 9th, 2006, 2:10 am, edited 1 time in total.
Cod 1 Mapper&Modder&Moddeler

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » August 9th, 2006, 2:02 am

creator wrote:luke can u add my x fire?
milkshakee
or msn
creator-mapper@hotmail.com
i wana ask u something about it
not on here (causes spam)
i'd rather u spam the forum than my msn/xfire

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 9th, 2006, 2:10 am

ok but.. why didnt u post here what i just asked than this message...
would be more helpfull than the 1 u just made... :shock:
Cod 1 Mapper&Modder&Moddeler

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests