Script help.

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

Moderator: Core Staff

Post Reply
zipperdude
CJ Worshipper
CJ Worshipper
Posts: 386
Joined: July 12th, 2007, 6:07 pm

Script help.

Post by zipperdude » October 10th, 2008, 6:33 pm

okay so i have a brush that i want to go up and down. The brush is in the middle of the up/down path. I want it to go 88 units up and 115 units down. heres my script:

Code: Select all

bridge_1()
{
	bridge_1 = getent("bridge_1","targetname");
	while(1)
	{
		bridge_1 moveZ (88,2,0.5,0.5);
		bridge_1 waittill("movedone");
		bridge_1 moveZ (-115,2,0.5,0.5);
		bridge_1 waittill("movedone");
	}
}
All it does is go up 88 units then go down 115 units then back up 88. I guess what im trying to ask is how do i make it go back up 115 units?
Show me what lies just beyond my eyes
Would you take me to the world where my spirit flies?
Tell me is that really fact or a pack of lies?

Twiztid = By . Blink = Song.
[color=#00FF00]Drofder2004[/color] wrote:Its not out of nowhere, I carry it in my backpack, with my elephant, 32 pets, a spare pair of leggings, 20 fish feasts, a staff I use to magically disenchant things, a stone I can use to travel home, 20000 arrows, a portable stable with a gorilla, a cat and a wolf, 20 bandages and massive quantity of cloth.

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

Re: Script help.

Post by Drofder2004 » October 10th, 2008, 8:54 pm

Or you could just put it on the top or bottom instead of planting it in the middle? :S
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

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

Re: Script help.

Post by Drofder2004 » October 11th, 2008, 3:40 pm

Alternatively, you could just move the object THEN loop the up and down...
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

zipperdude
CJ Worshipper
CJ Worshipper
Posts: 386
Joined: July 12th, 2007, 6:07 pm

Re: Script help.

Post by zipperdude » October 14th, 2008, 8:03 pm

lol i wanted it in the middle because that way since theres 4 of them they got at different paces. but i changed it and put them all starting at either top or bottom and moving at different sppeds so there all going differently.
Show me what lies just beyond my eyes
Would you take me to the world where my spirit flies?
Tell me is that really fact or a pack of lies?

Twiztid = By . Blink = Song.
[color=#00FF00]Drofder2004[/color] wrote:Its not out of nowhere, I carry it in my backpack, with my elephant, 32 pets, a spare pair of leggings, 20 fish feasts, a staff I use to magically disenchant things, a stone I can use to travel home, 20000 arrows, a portable stable with a gorilla, a cat and a wolf, 20 bandages and massive quantity of cloth.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests