Hit Fly

Player
सर्वर साइड
क्राफ्टलैंड स्टूडियो मोबाइल और पीसी दोनों पर उपलब्ध है

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.

डिक्लेरेशन

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

पैरामीटर्स

इनपुट

नाम टाइप विवरण
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