Closed Avatcher closed 3 months ago
[!NOTE] This is an implementation of a feature suggested in the Discord server.
entity:isMoving()
true
entity:isFalling()
This PR adds the following functions to EntityAPI:
entity:isMoving()
- Returnstrue
if entity's velocity in any coordinate is not zero, aka when entity is moving in any direction.entity:isFalling()
- Returnstrue
if entity's velocity in Y coordinate is below zero AND entity is not on the ground.