Jump to content
WurschtBanane

Teleporting via user action (SOLVED)

Recommended Posts

So which method are we using here a local command to.the flagpole?

Or a server executed.command?

Share this post


Link to post
Share on other sites
2 minutes ago, Midnighters said:

So which method are we using here a local command to.the flagpole?

Or a server executed.command?

Putting a user action in an editor-placed object. 

Share this post


Link to post
Share on other sites
56 minutes ago, wyattwic said:

 


0 = this addaction ["Teleport",{(_this select 1) setpos [markerPos "marker_Nimitz" select 0, markerPos "marker_Nimitz" select 1, 170]}];

This should work.

Thank you, worked.

Share this post


Link to post
Share on other sites
7 minutes ago, WurschtBanane said:

Putting a user action in an editor-placed object. 

Okay? So i guess you have your solution.

Share this post


Link to post
Share on other sites
1 minute ago, Midnighters said:

Okay? So i guess you have your solution.

Yup, thanks for the help everyone.

  • Like 1

Share this post


Link to post
Share on other sites

Afternoon gents. So I'm trying this same exact method, putting the script on a flagpole (multiple flagpoles for multiple teleport locations). My problem is is that I keep getting teleported to the corner of the map into the ocean.

I've checked and rechecked all the teleporter names, and even deleted all of them to try just between 2 points and nothing. Still teleports me into the ocean. Any idea why or any experience with this issue? Any help is much appreciated!

  • Like 1

Share this post


Link to post
Share on other sites
On 1/5/2019 at 3:03 PM, Viper1Zero said:

Afternoon gents. So I'm trying this same exact method, putting the script on a flagpole (multiple flagpoles for multiple teleport locations). My problem is is that I keep getting teleported to the corner of the map into the ocean.

I've checked and rechecked all the teleporter names, and even deleted all of them to try just between 2 points and nothing. Still teleports me into the ocean. Any idea why or any experience with this issue? Any help is much appreciated!

So dude my janky basic workaround, place this in your players init (which upsets me because i would rather use my radio but dont know how to so i do this):

 

Where the words are capitalized you can customize with your personalized variable names

 

this addAction ["WHATEVER you want the command to say",{YOUR player's variable name setPos (getPos THE variable name of the flag or object or vehicle)}]

 

My example:

 

this addAction ["Transport Prisoner",{me1 setPos (getPos prsn1)}]

 

I used it so only i can exit and enter a cell holding a prisoner

 

This can be applied into the inits of any two objects and/or any trigger to one-way teleport between

 

Obvs u can stack to go back n forth, dont forget ur ;'s

 

I made an infostand where i make prisoners "sign in" to get put in a specified cell, tricked my dad into signing himself into a cell lolol

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×