From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Returns true if object is touching the ground.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- isTouchingGround object
- Parameters:
- object: Object
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
- A full "is safely parked" method for air, ground and water vehicles:
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
- AgentRev - c
- Posted on Jun 01, 2014 - 01:23 (UTC)
-
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.
- Demellion - c
- Posted on Sep 29, 2016 - 08:28 (UTC)
-
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:
- Pierre MGI - c
- Posted on Nov 10, 2016 - 20:57 (UTC)
-
This command returns always true if the falling object is attached to some other object with the attachTo command, like for vehicle air drop with parachute.
- Gippo - c
- Posted on Apr 26, 2017 - 20:02 (UTC)
-
Be aware: it is not reliable on remote objects.