GUID detected teleport (SOLVED)

Have a question you need to ask? Need help? Ask here!

Moderator: Core Staff

Post Reply
DevilsYard
CJ Wannabe
CJ Wannabe
Posts: 27
Joined: March 16th, 2011, 11:14 pm

GUID detected teleport (SOLVED)

Post by DevilsYard » March 15th, 2012, 11:37 am

does anyone know the code needed for guid detected teleport please?

im using this atm but its seriously starting to annoy me

Code: Select all

secret_tele()
{
teleg1 = "015259f2a5888a09b6d43bed56254e6d";
teleg2 = "c50f3845c2fd5436d0c3d07811be788a";
teleg3 = "ed60e586a5fd204533ea1390052eba51";
teletrig = getent("protected_tele","targetname");
while (1)
{
teletrig waittill ("trigger", self );
tempGuid = user getGUID();
if((tempGuid == teleg1) || (tempGuid == teleg2) || (tempGuid == teleg3)
   {
      org2 = (0,168,-364);
      user setOrigin(org2, 0.1);
   }
else
   {
	wait 3;
   }
}
}
Last edited by DevilsYard on March 15th, 2012, 4:02 pm, edited 1 time in total.

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: GUID detected teleport

Post by Rezil » March 15th, 2012, 3:53 pm

Code: Select all

teletrig waittill ("trigger", self );
should be:

Code: Select all

teletrig waittill ("trigger", user );
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

DevilsYard
CJ Wannabe
CJ Wannabe
Posts: 27
Joined: March 16th, 2011, 11:14 pm

Re: GUID detected teleport (SOLVED)

Post by DevilsYard » March 15th, 2012, 4:03 pm

was staring me right in the face the whole time! gotta agree though, coding plays tricks with ur eyes!!

Thanks

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: GUID detected teleport (SOLVED)

Post by Rezil » March 15th, 2012, 4:10 pm

I would suggest using something like Programmer's Notepad for coding. Properly formatted code is just so much easier to read.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

DevilsYard
CJ Wannabe
CJ Wannabe
Posts: 27
Joined: March 16th, 2011, 11:14 pm

Re: GUID detected teleport (SOLVED)

Post by DevilsYard » March 15th, 2012, 5:27 pm

im using notepad++ just now but ill give it a try,


thanks

Copy-Cat
CJ Wannabe
CJ Wannabe
Posts: 30
Joined: July 1st, 2011, 2:01 am

Re: GUID detected teleport (SOLVED)

Post by Copy-Cat » March 16th, 2012, 5:07 pm

This is an nice script. For completeness, can someone post a "How to use" or at least the Radiant portion of this script.

Also could you post a link to the tutorial you are using.

Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests