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 |
|---|---|---|
| Objetivo | Player | jugador objetivo |
| Dirección | Vector3 | Dirección de noqueo |
| Duración (s) | Float | tiempo de atropello |
| Velocidad Y | Float | Velocidad inicial del eje Y en el impacto |
| Velocidad XZ | Float | Velocidad inicial en el plano XZ en el momento del impacto |
| Cambiar Rotación | Bool | Cambiar o no la orientación del jugador |