Make certain doors teleport to certain locations?
So far I managed to get pressing e on a door to teleport me to my desired location but I get confused when trying to go about  specify the certain door I want it to work on any ideas are greatly appreciated here's the code I have so har
Vector3 traders = new Vector3(10, 10, 100);
 
bool CanUseLockedEntity(BasePlayer player, BaseLock baseLock)
        {
            player.Teleport(traders);
            PrintToChat("Teleporting To Traders...");
            return true;
        }​
I guess there are a few ways. You could try identifying them by their position, or possibly their network ID.

Edit: Btw that chat message will be visible to all players, if you want it to be visible to only one player then pass the player in as the first argument and then the message as the second.
Thanks for the help and what would you say the best way to get an entity network id or Is there a way to make a custom trigger between 2 points that if a player steps between those set of coordinates it teleports them to the desired location.

Pretty sure you can do baseLock.net.ID to get the network id.

If you want to create a teleport trigger you can create an empty gameobject (new GameObject()) with a SphereCollider or BoxCollider, set the collider to a trigger and then do stuff in OnTriggerEnter.