Created Path (markdown)

bi0qaw 2017-11-25 15:32:10 +01:00
parent 468693d9e2
commit e4aca6a295
1 changed files with 27 additions and 0 deletions

27
Path.md Normal file

@ -0,0 +1,27 @@
## Vectors
```
vector %vectors% path with density %number%
```
## Locations
```
%location% path with density %number%
```
Creates lines between the locations or vectors. This is different from [link all](Link-All) because it does not connect all locations/vectors with each other but only connects each location/vector with the next one in the list.
Example:
```
set {_poly::*} to polygon with 7 points and radius 10
set {_path::*} to vector path between {_poly::*} with density 5
show happy villager at player offset by {_path::*}
```
![](https://i.imgur.com/cEsw4aT.png)
Note that the last and first polygon vertices are not connected. If you want to connect them you have to add the first location/vector of the list to the end of the list:
```
set {_poly::*} to polygon with 7 points and radius 10
add {_poly::1} to {_poly::*} # add first vector to the end of the list
set {_path::*} to vector path between {_poly::*} with density 5
show happy villager at player offset by {_path::*}
```
![](https://i.imgur.com/WmrRtUq.png)