From Garry's Mod
Revision as of 19:00, 28 April 2016 by Robotboy655
Returns whether the entity is on ground or not.
Internally, this checks if FL_ONGROUND is set on the entity.
Whether the entity is on ground or not.
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
Outputs 'true' to the console if the player 1 is on ground.