isTouchingGround: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
||
Line 9: | Line 9: | ||
|descr= Returns true if object is touching the ground. | |descr= Returns true if object is touching the ground. | ||
|s1= | |s1= '''isTouchingGround''' object | ||
|p1= object: [[Object]] | |p1= object: [[Object]] |
Revision as of 22:10, 19 June 2021
Description
- Description:
- Returns true if object is touching the ground.
- Groups:
- Object Manipulation
Syntax
Examples
- Example 1:
if (isTouchingGround player) then {hint "Terraferma!";};
Additional Information
- See also:
- underwater
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
- Posted on June 1, 2014 - 01:23 (UTC)
- AgentRevolution
- If you are using this command as a validation method, it should not be the sole thing you are checking for, as the result is often inaccurate. For example, it returns false for some helicopters when landed on the roof of certain buildings, and it always returns false for boats, even if they are beached.
- Posted on September 29, 2016 - 08:28 (UTC)
- Demellion
-
In addition to previous statement: That behaviour is true, simply because isTouchingGround applied to a player unit (or any unit) is frozen to a last state when unit enters vehicle.
To get proper return from this command you should go for units vehicle:
_var = isTouchingGround player // Unreliable _var = isTouchingGround (vehicle player) // Pretty reliable
- Posted on November 10, 2016 - 20:57 (UTC)
- Pierre MGI
- This command returns always true if the falling object is attached to some other object with the command attachTo, like for vehicle air drop with parachute.
- Posted on April 26, 2017 - 20:02 (UTC)
- Gippo
- Be aware: it is not reliable on remote objects.