This is a modders recources, designed to mimick /teleport, due to server commands not being available through the api.
This mod is a modders recource giving modders access to a teleport command. which they can call inside thier scripts.
No. the picture is just an a nice picture. If you watch the gif below youll see that the client is simply teleported to thier destination.
No. This script will teleport any player.
Thier is a command included with the mod showing how you would call this command via /corridor. For examplea modder could limit the where the script is allowed to teleport allowing servers to give strict teleport command to their players. IE players can teleport back to their home base.
Ive got a mod in development that would not work without access to /teleport. So I made this allowing me to accomplish my mod.
Yes, Thats why im posting it here. Some credit would be appreciated though.
Place the SubspaceCorridor.lua inside data/scripts/player/ Access the script like so:
local x = 1
local y = 1
player:addScriptOnce("SubspaceCorridor.lua",x,y)
The script will then teleport the player to that destination. The script has built in safegaurds preventing a teleportation inside of a rift. In later versions i'll be making the script easier to use with 'require()' this will allow me to return an error if the x,y provided are not reachable. Or if their is an error in teleporting.
Just delete the files, and remove refrences to them out of your own scripts.
Version 1.1.0 Subspace-Corridor v1.1.0
Version 1.-.0 https://www.dropbox.com/s/9p1qbkz98nwo6pj/Subspace-Corridor-V1.0.0.zip?dl=0
Version 1.1.0 -Added more print outs -Added check to identify if to close to other entities -Added configs page, (no required) -Cleaned up code for performance
https://github.com/dirtyredz/Subspace-Corridor