Better Line Of Sight Teleport

Better Line Of Sight Teleport 1.0.1

Sign in to download
Improves the teleportation mechanism of the native teleportlos command
This plugin extends the functionality of the native 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 the teleportlos 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.
Author
VisEntities
Downloads
22
First release
Last update

Ratings

0.00 star(s) 0 reviews

Also by VisEntities

  • Itemless Player Spawn
    Itemless Player Spawn
    Ensures players spawn without receiving the default starter items, such as the torch and rock
  • No Event Markers
    No Event Markers
    Removes map markers for events such as patrol helicopters, hackable crates, and cargo ships
  • Chicken Coop
    Chicken Coop
    Get chickens to lay eggs, breed, and live in coops

Latest updates

  1. 1.0.1

    Please wait until the Rust update goes live before downloading. Patched for the upcoming...
Back
Top
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Make sure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart