.thumb.png.fd19698f82bebaa6c7db15990d1f4c3f.png)
.thumb.png.fd19698f82bebaa6c7db15990d1f4c3f.png)
Show and list Rust roads, rivers, and rails, and use their path points programmatically
Commands
Examples:
The above commands are duplicated for rivers and rails. Replace road with river or rail, etc.
Note that as of version 1.0.5, you can use just the road number for the target road instead of, e.g. "Road X".
Permissions
Configuration
{ "Options": { "ShowAllTextTime": 30.0, "ShowOneTextTime": 60.0, "ShowOneAllPoints": true }, "Version": { "Major": 1, "Minor": 0, "Patch": 6 } }
For Developers
The following can be used for example as follows:
[PluginReference] private readonly Plugin RoadFinder; Dictionary<string, Road> roads = RoadFinder?.Call("GetRoads");
Hooks
List<string> GetRoadNames();
Returns a List of string values containing road names.
Dictionary<string, Road> GetRoads();
Returns the entire road list in a Dictionary. This requires a local version of the following class:
public class Road { public List<Vector3> points = new List<Vector3>(); public float width; public float offset; public int topo; }
Road GetRoad(string name);
Returns a single Road object for the named road. Requires class show above.
List<Vector3> GetRoadPoints(string name);
Returns a list of vectors for the entire run of the road. The count will vary based on road length.
The hooks above are duplicated for rivers and rails, e.g. GetRiverNames, GetRailNames, etc.
Total number of downloads.
Total customers served.
Total number of files sold.
Total payments processed.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.