Workshop.codes
Create

Create Effect Last updated November 26, 2024

Description

Creates an in-world effect entity. This effect entity will persist until destroyed. To obtain a reference to this entity, use the Last Created Entity value. This action will fail if too many entities have been created.

There can be a maximum of 128 active effects created by this action, after which new effects will not appear. With the use of Workshop Extensions the maximum can be increased to 256.

For a visual list of all effects check out the Effects Reference Sheet

Snippet

Create Effect(All Players(All Teams), Sphere, Color(White), Vector(0, 0, 0), 1, Visible To Position And Radius);

Properties

Returns: Void
Parameters: Visible To, Type, Color, Position, Radius, Reevaluation

Visible To
Type: Player | Array (Player), Default: All Players
One or more players who will be able to see the effect.

Type
Type: Effect, Default: Sphere
The type of effect to be created.

Color
Type: Color, Default: Color
The color of the effect to be created. If a particular team is chosen, the effect will either be red or blue, depending on whether the team is hostile to the viewer. Does not apply to sound effects.

Position
Type: Position, Default: Vector
The effect's position. If this value is a player, then the effect will move along with the player. Otherwise, the value is interpreted as a position in the world.

Radius
Type: Float, Default: Number (1)
The radius of this effect.

Reevaluation
Type: Effect Reevaluation, Default: Visible To Position And Radius
Specifies which of this action's inputs will be continuously reevaluated.

Workshop.codes