Note that command is supposed to be used on local units. When used on a remote unit, its return (isFalling) is unreliable and sometimes returns wrong values.
Description
Returns a unit's freefall information.
Syntax
getUnitFreefallInfo unit
Parameters:
unit: Object - unit
Returns: Array with [isFalling, isInFreefallPose, minFreefallHeight]
- isFalling: Boolean - true if unit is falling
- isInFreefallPose: Boolean - true if unit is in freefall pose
- minFreefallHeight: Number - current minimum freefall height (see setUnitFreefallHeight)
Examples
Example 1
getUnitFreefallInfo player;
See also
setUnitFreefallHeight · getUserInfo · getModelInfo