0a1304cfa1
Fix for forced update |
||
---|---|---|
README.md | ||
TeleportDoorScreenShot.jpg | ||
TeleportDoors.cs | ||
teleportdoors.png |
README.md
Custom Prefab a door/button in rust edit that will teleport players
Required Permission: TeleportDoors.use (Door wont work for users without this perm)
How To Use:
Place a door or button down in rustedit.
Create a custom prefab of it on its own
Give it the name in this layout TELEPORT=X,Y,Z=LoadingMessage=SfxID=ConsoleCMD
For Example give a door the prefab name TELEPORT=100,50.55,-100
Players will be teleported to that location when they try open the door and have the required permission.
This is the minimum settings needed to use this plugin. The Rest are optional.
You can set a LoadingMessage that will be shown as players are teleported
Such as if you wanted it to say Loading Dark Tower
You would use the prefab name TELEPORT=100,50.55,-100=Loading Dark Tower
Make sure to tick Convert Selection To Group
Further advanced settings can be provided.
Such as if you wanted it to play the team invite soundfx on teleport.
assets/bundled/prefabs/fx/invite_notice.prefab
Set it as the SfxID setting.
TELEPORT=100,50.55,-100=Loading Dark Tower=2453653601
You can get the SfxID from the stringpool.txt file found where rustedit is installed.
Lastly if you wanted a command to be ran on the player when they arriave at there teleport location you can setup the ConsoleCMD setting.
For example you wanted to give a player a torch since you teleported them in somewhere dark.
TELEPORT=100,50.55,-100=Loading Dark Tower=inventory.giveto $player torch 1
$player its replaced with there game name,
$steamid is replaced with there steam id.