Garry's Mod Wiki

Entity:IsOnGround

Description

Returns whether the entity is on ground or not.

Internally, this checks if FL_ONGROUND is set on the entity.

This function is an alias of Entity:OnGround.

Returns

1 boolean
Whether the entity is on ground or not.

Example

Demonstrates the use of this function.

print( Entity( 1 ):IsOnGround() ) print( IsValid( Entity( 1 ):GetGroundEntity() ) ) -- This should give the exact output as the first line
Output: Outputs 'true' to the console if the player 1 is on ground.

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 3
Generate Html 11
SaveChanges 9
Render Body 0
Render Sidebar 12