Velocity (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.2-dev31

Syntax

[the] velocit(y|ies) of %entities/directionalparticles%

Description

Gets or changes velocity of an entity or particle. Setting the velocity of a particle will remove its random dispersion and force it to be a single particle.

Examples

set player's velocity to {_v}
set the velocity of {_particle} to vector(0, 1, 0)
if the vector length of the player's velocity is greater than 5:
    send "You're moving fast!" to the player

View source