Add Velocity

Bi-Entity Action.

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

Field Type Default Description
x Float 0 The amount of velocity to add on the x-axis.
y Float 0 The amount of velocity to add on the y-axis.
z Float 0 The amount of velocity to add on the z-axis.
set Boolean false If this is true, the action will act as a "set" velocity action, overriding the entity's current velocity instead of adding to it.

Example

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

Pulls the target of the action towards the actor.