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.

Type ID: origins:add_velocity

Fields

Field Type Default Description
x Float DEPRECATED Use the velocity field instead.
y Float DEPRECATED Use the velocity field instead.
z Float DEPRECATED Use the velocity field instead.
velocity Vector {"x": 0.0, "y": 0.0, "z": 0.0} The amount of velocity to add.
reference String "position" Determines whether to use the actor entity's "position" or "rotation" when calculating the velocity that will be applied to the target entity.
client Boolean REMOVED Use the Side (Meta Action Type) instead.
server Boolean REMOVED Use the Side (Meta Action Type) instead.
set Boolean false Determines whether the target entity's velocity is overridden

Examples

"bientity_action": {
    "type": "origins:add_velocity",
    "velocity": {
        "z": -2
    }
}

This example will "pull" the target entity to the actor entity.