Particle Irregular Polygon (Expression) — skript-particle

Addon: skript-particle · Category: Expression · Since: 1.0.0

Syntax

[a] [2d] polygon (from|with) [vertices|points] %vectors/locations% [and height %-number%]

Description

Creates an irregular polygon from a list of vectors or locations. If locations are used, the polygon can be drawn without giving a specific location to draw at. The height of the polygon will be the height between the lowest and highest points. It can also be set with the optional height parameter.

Irregular polygons currently only support the wireframe style. Also, they do not currently support Dynamic Locations like lines and cuboids do.

Examples

set {_shape} to a polygon with points vector(0, 0, 0), vector(1, 0, 0), and vector(1, 1, 1)
set {_shape} to a 2d polygon from points vector(0,0,1), vector(1,0,1), vector(0,0,-1) and height 0.5

View source