Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!
Moderator: Core Staff
-
oppdelta
- CJ Fan
- Posts: 107
- Joined: June 3rd, 2007, 2:24 pm
Post
by oppdelta » September 28th, 2007, 9:33 am
Code: Select all
main()
{
entTransporter = getentarray("enter","targetname");
if(isdefined(entTransporter))
{
for(lp=0;lp<entTransporter.size;lp=lp+1)entTransporter[lp] thread Transporter();
}
}
Transporter()
{
while(true)
{
self waittill("trigger",other);
entTarget = getent(self.target, "targetname");
wait(0.10);
other setorigin(entTarget.origin);
other setplayerangles(entTarget.angles);
wait(0.10);
}
}
Thats one teleporter, but how can i have say: 5 telporters? What would i have to add change etc?
-
JDogg
- Too cool for CoDJumper
- Posts: 3617
- Joined: August 28th, 2007, 11:46 am
- Location: Melbourne, Australia
Post
by JDogg » September 28th, 2007, 11:51 am
I think you can just have the one script, but have multiple triggers.
-
oppdelta
- CJ Fan
- Posts: 107
- Joined: June 3rd, 2007, 2:24 pm
Post
by oppdelta » September 28th, 2007, 12:42 pm
K i know that, but i would like to know how u put in multiple triggers and that?
-
Drofder2004
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Post
by Drofder2004 » September 28th, 2007, 1:37 pm
Make a trigger.
Give it values
"targetname"
"enter"
Make a script_origin.
Select the trigger, THEN select the origin join them together (ctrl+w I think).
Repeat.
Keep the targetname the same and the script will do the rest.
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
-
All-Killer
- CJ Worshipper
- Posts: 383
- Joined: December 16th, 2005, 6:38 pm
Post
by All-Killer » September 28th, 2007, 8:59 pm
For cod1 its Ctrl + K to link 2 things.
-
oppdelta
- CJ Fan
- Posts: 107
- Joined: June 3rd, 2007, 2:24 pm
Post
by oppdelta » October 2nd, 2007, 9:43 am
K thanks ill give it a try tonight. Soz for late reply I aint had internet for while.
Users browsing this forum: No registered users and 3 guests