Add Velocity (Bi-Entity Action Type)

Adds or sets the velocity of the target entity, based on the direction from the actor entity to the target entity.

Adds or sets the velocity of the target entity, based on the direction from the actor entity to the target entity.

Type ID: apoli:add_velocity

Fields

FieldTypeDefaultDescription
xFloat0.0The amount of velocity to add on the x-axis.
yFloat0.0The amount of velocity to add on the y-axis.
zFloat0.0The amount of velocity to add on the z-axis.
referenceString"position"Determines whether to use the target entity’s "position" or "rotation" when calculating the velocity that will be applied to the target entity.
setBooleanfalseIf this is true, the action will act as a “set” velocity action, overriding the entity’s current velocity instead of adding to it.

Examples

"bientity_action": {
    "type": "apoli:add_velocity",
    "z": -2
}

This example will “pull” the target entity to the actor entity.