UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Simple Teleportation Script?

broken avatar :(
Created 11 years ago
by sedozz
0 Members and 1 Guest are viewing this topic.
2,942 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 4 January 2015
Last active: 1 year ago
Posts
184
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Battlefield is giving COD the hands rn
Signature
I just spent two hours moving trees around.
×
sedozz's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
sedozz's Contact & Social Linkssedozzsedozz
I was hoping someone could write me a teleportation script in its most basic form. I do not need a full script, essentially just the one-way teleportation method itself, this way I can utilize it within the framework I intend. I'm looking for it to be activated for individual players upon contact with a trigger_radius. For the sake of ease, lets say I have trigger_radius with the targetname "tele_trig", a script_origin with the targetname "tele_leave" at the departure point another script_origin with the targetname "tele_arrive" at the arrival point. If I would need separate arrival origins for coop, please let me know. Thanks in advance! :D
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
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 ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
sounds like all you need is "entity forceTeleport()"
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 4 January 2015
Last active: 1 year ago
Posts
184
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Battlefield is giving COD the hands rn
×
sedozz's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
sedozz's Contact & Social Linkssedozzsedozz
sounds like all you need is "entity forceTeleport()"

So would I simply have a player activate a trigger, and self forceTeleport() ? How would I set the destination point?
Marked as best answer by sedozz 11 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
id need to double check the arguments but i believe player forceTeleport( location.origin );

so like :

Code Snippet
Plaintext
teleport_trigger()
{
    location = getEnt( "teleport_destination", "targetname" ); // Just make this a script origin

    player = undefined;
    self waittill( "trigger", player ); // Prob wrong way round, im not at my PC
    player forceTeleport( location.origin );
}

Dont hold me to that though, prob a syntax error in there or something, but thats the rough guideline ;)
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 4 January 2015
Last active: 1 year ago
Posts
184
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Battlefield is giving COD the hands rn
×
sedozz's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
sedozz's Contact & Social Linkssedozzsedozz
Thanks for the help! I'll double check the syntax, just to be sure. Appreciate the response!
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
no problem :)

 
Loading ...