Declaration
func HitFly(target entity<Player>, direction Vector3, duration float, velocityY float, velocityXZ float, changeRotation bool)
go
Parameters
Input
| Name | Type | Description |
|---|---|---|
| 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 |