Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.43

Description

Description:

Checks whether an object is placed on a surface (ground, road, building, and so on).

Flying, dropping, or swimming objects return false.

Syntax

Syntax:isTouchingGround object
Parameters:
  • object: Object - Object to check.
Return Value:Boolean - Returns true, if the object is currently on top of a surface.

Examples

Examples:
_onGround = isTouchingGround player 

Additional Information

See also: isOnRoad
Multiplayer: 
Problems: 

Notes