This plugin extends the functionality of the native
At each checkpoint, the plugin scans for entities listed in the prioritized entity list within a set radius. If a prioritized entity is found, the teleportation position is set to the entity's location. If none is found, the plugin checks for the ground or other valid surfaces. If an obstacle is detected, that's where you'll teleport. Debug mode can be enabled to visualize this process.
teleportlos
command, allowing you to teleport precisely to entities in your line of sight and land accurately on terrain without clipping through objects.How It Works
When you use theteleportlos
command, the plugin casts a ray from where you're looking, up to the maximum distance set in the config. Along this ray, multiple checkpoints are created based on the configured number, helping to accurately determine the teleportation position.At each checkpoint, the plugin scans for entities listed in the prioritized entity list within a set radius. If a prioritized entity is found, the teleportation position is set to the entity's location. If none is found, the plugin checks for the ground or other valid surfaces. If an obstacle is detected, that's where you'll teleport. Debug mode can be enabled to visualize this process.
Configuration
JSON:
{
"Version": "1.0.0",
"Teleport Distance Limit": 900.0,
"Entity Short Prefab Names To Prioritize": [
"bradleyapc",
"patrolhelicopter",
"supply_drop",
"minicopter.entity",
"scraptransporthelicopter",
"rhib",
"rowboat",
"cargoshiptest",
"ch47scientists.entity"
],
"Radius For Detecting Nearby Entities": 40.0,
"Number Of Check Points During Teleportation": 15,
"Enable Debug": false
}
Teleport Distance Limit
- Sets the maximum distance the player can teleport.Entity Short Prefab Names To Prioritize
- A list of specific entity prefab names that the plugin will prioritize during teleportation. If any of these entities are detected along the path, the teleportation will favor them as the destination.Radius For Detecting Nearby Entities
- The radius around each checkpoint where the plugin will look for entities. This helps in detecting important entities near the teleportation path.Number Of Check Points During Teleportation
- Sets the number of checkpoints to check during the teleportation path to find the most suitable location.Enable Debug
- If set to true, the plugin will display debug visuals such as lines and spheres showing the teleportation path and detected entities, helping you visualize the teleportation process.