Skip to content

Velocity

Entity Condition Type.

Checks the entity's velocity values.

Type ID: apugli:velocity

Fields

Field Type Default Description
x Float optional The x velocity value to use for the comparison.
y Float optional The y velocity value to use for the comparison.
z Float optional The z velocity value to use for the comparison.
axes Array of Strings optional The axes that should be used for the comparison.
comparison Comparison ">=" How the axes' velocity should be compared to the specified value.
compare_to Float optional The value for the axes specified in axes to compare to.

Example

"condition": {
    "type": "apugli:velocity",
    "axes": [
        "y"
    ],
    "compare_to": 4,
    "comparison": "<="
}
This example checks if the entity's y velocity is lesser than or equal to 4.