Zip Line?
Moderator: Core Staff
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
And also fairly easy.
If Luke has it in his map, I will leave it up to luke to either give away his code or wait until the release of his map...
If Luke has it in his map, I will leave it up to luke to either give away his code or wait until the release of his map...

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
The way i did it is pretty easy, and the code is already on the forum, just not for this purpose. This is the code i used, which is basically just using moveto and linkto:
Simple but works fairly well, i'm sure you can change the values for it to work in your map soviet, but if you need help just ask. Drofder might have a better method though 
Code: Select all
zipwire()
{
zipwire = getent ("zipwire","targetname"); //zipwire is the handle, this will be moving along the wire
ziptrig = getent ("ziptrig","targetname");
org_start = (1304,2673,1186);
while (1)
{
ziptrig waittill ("trigger",user);
user.origin = zipwire.origin - (0,0,120);
user linkto(zipwire);
zipwire moveto((1304, 1878, 1567), 6, 4, 2);
zipwire waittill ("movedone");
wait 0.5;
user unlink();
zipwire moveto((org_start), 6, 4, 2);
zipwire waittill ("movedone");
wait 1;
}
}

-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Thats the basic single zipwire and if you only want to use one zipwire, this is the simplest method.Luke wrote:The way i did it is pretty easy, and the code is already on the forum, just not for this purpose. This is the code i used, which is basically just using moveto and linkto:
Simple but works fairly well, i'm sure you can change the values for it to work in your map soviet, but if you need help just ask. Drofder might have a better method thoughCode: Select all
zipwire() { zipwire = getent ("zipwire","targetname"); //zipwire is the handle, this will be moving along the wire ziptrig = getent ("ziptrig","targetname"); org_start = (1304,2673,1186); while (1) { ziptrig waittill ("trigger",user); user.origin = zipwire.origin - (0,0,120); user linkto(zipwire); zipwire moveto((1304, 1878, 1567), 6, 4, 2); zipwire waittill ("movedone"); wait 0.5; user unlink(); zipwire moveto((org_start), 6, 4, 2); zipwire waittill ("movedone"); wait 1; } }

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
Who is online
Users browsing this forum: No registered users and 3 guests