Particle Line (Expression) — skript-particle
Addon: skript-particle · Category: Expression · Since: 1.0.0
Syntax
[a] line[s] (from|between) %locations/entities/vectors% (to|and) %locations/entities/vectors%Description
Creates a line shape between points, or in a direction for a given length. The length must be greater than 0. When defining a line from points, the points can either be vectors or locations/entities. Each point in the first set will connect to each point in the second set. You can use the third pattern to connect points in series, like a path along the points.
You cannot use both vectors and locations/entities, but you can mix and match locations and entities.When using locations, this is a shape that can be drawn without a specific location. It will be drawn between the two given locations. If using vectors, or a direction and length, the shape does require a location to be drawn at.
Examples
set {_shape} to line from vector(0, 0, 0) to vector(10, 10, 10)
set {_shape} to a line in direction vector(1, 1, 1) and length 10
draw the shape of a line from vector(0, 0, 0) to vector(10, 10, 10) at player
# note that the following does not require a location to be drawn at
draw the shape of a line from player to player's target
draw the shape of a line from player to (all players in radius 10 of player)
draw the shape of a line connecting {_locations::*}