getUnitFreefallInfo: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\|branch= *dev " to "") |
BrettMayson (talk | contribs) mNo edit summary |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 15: | Line 15: | ||
|p1= unit: [[Object]] - unit | |p1= unit: [[Object]] - unit | ||
|r1= [[Array]] | |r1= [[Array]] with [isFalling, isInFreefallPose, minFreefallHeight] | ||
* isFalling: [[Boolean]] - [[true]] if unit is falling | * isFalling: [[Boolean]] - [[true]] if unit is falling | ||
* isInFreefallPose: [[Boolean]] - [[true]] if unit is in freefall pose | * isInFreefallPose: [[Boolean]] - [[true]] if unit is in freefall pose | ||
| Line 23: | Line 23: | ||
|seealso= [[setUnitFreefallHeight]] [[getUserInfo]] [[getModelInfo]] | |seealso= [[setUnitFreefallHeight]] [[getUserInfo]] [[getModelInfo]] | ||
}} | |||
{{Note | |||
|user= Sa-Matra | |||
|timestamp= 20230508042625 | |||
|text= 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. | |||
}} | }} | ||
Latest revision as of 17:08, 4 January 2026
Description
- Description:
- Returns a unit's freefall information.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- getUnitFreefallInfo unit
- Parameters:
- unit: Object - unit
- Return Value:
- Array with [isFalling, isInFreefallPose, minFreefallHeight]
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.
Only post proven facts here! Add Note
- 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.