HytaleDocs
Misc

RadialKnockback

Type

This field controls the type, it must be set to the constant value "Radial" to function as this type.

Type information: Constant value: Radial

Force

The force multiplier that will be applied to the knockback vector.

Type information: Number defaults to: 0.0

Duration

The duration for which the knockback force should be continuously applied. If 0, force is applied once.

Type information: Number defaults to: 0.0

VelocityType

Type information:

(Nullable) Any one of the following String (defaults to Add):

NameDescription
"Add"

Adds the velocity to any existing velocity

"Set"

Changes the velocity to the given value. Overriding existing values.

VelocityConfig

Type information:

(Nullable)

VelocityConfig with the following properties:

KeyTypeDescription
GroundResistance(Nullable) Either Number defaults to: 0.8199999928474426 or String that matches the pattern: ^(-?Infinity|NaN)$
GroundResistanceMax(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$
AirResistance(Nullable) Either Number defaults to: 0.9599999785423279 or String that matches the pattern: ^(-?Infinity|NaN)$
AirResistanceMax(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$
Threshold(Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$

The threshold of the velocity's length before resistance starts to transition to the Max values (if set)

Style(Nullable) Any one of the following String (defaults to Linear):
VelocityThresholdStyle
NameDescription
"Linear"
"Exp"

Whether the transition from min to max resistance values should be linear or not

Angle

The rotation that will be applied to the knockback vector. For instance, 0 is a backward push, 180 a forward pull and ±90 sideways. From the source's PoV, positive values are left, and negative values right.

Type information: Number defaults to: 0.0

AngleReference

The base angle of the knockback vector. If the knockback source doesn't have the chosen rotation data, the other one will be picked; if none are provided, rotation is assumed to be zero.

Type information:

Any one of the following String (defaults to HeadRotation):

NameDescription
"Rotation"
"HeadRotation"

SourceOffsetX

The X offset of the source position. Positive values are right and negative values are left.

Type information: Number defaults to: 0.0

SourceOffsetZ

The Z offset of the source position. Positive values are forward and negative values backward.

Type information: Number defaults to: 0.0

SourceOffsetAngleReference

The reference angle when offsetting the source position. If the knockback source doesn't have the chosen rotation data, the other one will be picked; if none are provided, rotation is assumed to be zero. This only affects knockback with a source offset.

Type information:

Any one of the following String (defaults to HeadRotation):

NameDescription
"Rotation"
"HeadRotation"

VelocityY

The Y velocity that will be applied to the target.

Type information: Number defaults to: 0.0

On this page