scripting help

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

Moderator: Core Staff

Post Reply
Deadly
CJ Fan
CJ Fan
Posts: 138
Joined: July 14th, 2007, 8:53 pm
Location: New Jersey
Contact:

scripting help

Post by Deadly » July 20th, 2007, 8:44 pm

well basicaly what i want to do is make a platform move on a y axis a certain units then rotate 90 degrees. then move on an x axis a certain units without making multiple triggers. and how do i make a secret trigger?
Image

Jumpy'z
CJ Wannabe
CJ Wannabe
Posts: 13
Joined: December 28th, 2006, 5:55 pm
Location: Quebec, Canada

Post by Jumpy'z » July 20th, 2007, 10:23 pm

There

Code: Select all

thread rotate(); 
}

rotate1()
{
trigger = getent("trig_rotate1","targetname"); // replace trig_rotate1 per ur trigger targetname

platform = getent("platfrom1","targetname"); // replace platform1 per ur brushmodel targetname

while(1)
{
trigger waittill("trigger",user);

platform moveY(Unit,time,slow start time,slow stop time);

wait(time);

platform rotateroll(90,1,0,0); // (Rotate degree,time,slow start time,slow stop time)... rotateroll or rotateyaw

wait(1);

platform moveX(Unit,time,slow start time,slow stop time);

platform waittill("rotatedone");
}
}
and for the secret trigger i dont understand what u mean but if its like when u walk thru its trigger_multiple or trigger_once (only work once)

And if im wrong ppl correct me plz[/code]

Deadly
CJ Fan
CJ Fan
Posts: 138
Joined: July 14th, 2007, 8:53 pm
Location: New Jersey
Contact:

Post by Deadly » July 22nd, 2007, 5:27 pm

ok thanks for the script. i know the trigger thing now.
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests