Skip to content

Add Velocity

apace100 edited this page Mar 11, 2021 · 3 revisions

Entity Action. Adds velocity towards a specific direction.

Type ID: origins:add_velocity

Fields:

x, float, default = 0: The amount of velocity to add on the x-axis.

y, float, default = 0: The amount of velocity to add on the y-axis.

z, float, default = 0: The amount of velocity to add on the z-axis.

space, string, default = "world": The Space to perform the velocity addition in.

Example:

"entity_action": {
  "type": "origins:add_velocity",
  "y": 2
}

Launches the entity upwards into the air.

Clone this wiki locally