Hit Fly

Player
Lado del servidor
Disponible en PC y móvil

Give the player a knock-up effect. The target player will fall at a fixed acceleration, and will be forced to stop after a collision in the air.

Declaración

func HitFly(target entity<Player>, direction Vector3, duration float, velocityY float, velocityXZ float, changeRotation bool)
go

Parámetros

Entrada

Nombre Tipo Descripción
Target Player Target Player
Direction Vector3 Knockback direction
Duration (s) Float Knockback duration
Velocity Y Float Initial velocity on the Y axis when knocked back
Velocity XZ Float Initial velocity in the XZ plane when knocked back
Change Rotation Bool Whether to change the player’s direction