Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

checkbottom

From Quake Wiki

Revision as of 12:50, 1 August 2023 by Boondorl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

float checkbottom(entity e)

Usage[edit]

Checks if the entity is currently on the ground. This will be considered true if the entity is up to 18 units off the ground, their maximum step height. Note that all corners of the entity's bounding box must be on ground.

Parameters[edit]

  • e
The entity to check.

Return[edit]

Returns TRUE if the entity was on the ground.

Example[edit]

// This monster only does a leap attack if it's on the ground
if (checkbottom(self))
    DoLeapAttack();