getUnitFreefallInfo

From Bohemia Interactive Community
Revision as of 20:58, 4 July 2024 by Lou Montana (talk | contribs) (Text replacement - "Samatra" to "Sa-Matra")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns a unit's freefall information.
Groups:
Object Manipulation

Syntax

Syntax:
getUnitFreefallInfo unit
Parameters:
unit: Object - unit
Return Value:
Array format [isFalling, isInFreefallPose, minFreefallHeight], where

Examples

Example 1:
getUnitFreefallInfo player;

Additional Information

See also:
setUnitFreefallHeight getUserInfo getModelInfo

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Sa-Matra - c
Posted on May 08, 2023 - 04:26 (UTC)
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.