So I just wanted to know how you could make a teleport where you walk threw a entity and it would teleport you to a location (Like when the rifts in black ops 3)
So I just wanted to know how you could make a teleport where you walk threw a entity and it would teleport you to a location (Like when the rifts in black ops 3)
So your ent would most likely be a trigger multiple, you would get it and wait till it was triggered, then check if it were a player, and setorigin. Something like this:
Code Snippet
Plaintext
TeleportMeInit(){ trigs = GetEntArray( "teleportme","targetname" );//trigger_multiples wiht targetname of teleportme array_thread( trigs,::TeleportMe ); } TeleportMe(){ while(1){ self waittill("trigger", who); if(IsPlayer( who )){ dest = getstruct( self.target,"targetname" );//in radiant, add a struct at destination, select your trigger then your struct and press w who DontInterpolate( ); who SetOrigin( dest.origin ); } } }
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
So your ent would most likely be a trigger multiple, you would get it and wait till it was triggered, then check if it were a player, and setorigin. Something like this:
Code Snippet
Plaintext
TeleportMeInit(){ trigs = GetEntArray( "teleportme","targetname" );//trigger_multiples wiht targetname of teleportme array_thread( trigs,::TeleportMe ); } TeleportMe(){ while(1){ self waittill("trigger", who); if(IsPlayer( who )){ dest = getstruct( self.target,"targetname" );//in radiant, add a struct at destination, select your trigger then your struct and press w who DontInterpolate( ); who SetOrigin( dest.origin ); } } }
Thanks a lot for that, defiantly crediting you for my map as you solved a problem with my current script 😀