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

droptofloor

From Quake Wiki

Revision as of 03:58, 27 March 2013 by Necros (talk | contribs) (Created page with "====Syntax:==== <code>float droptofloor(float yaw, float dist)</code> Tries to "drop" an entity down up to 256 units in a single frame, as if it had fallen due to physics. ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

float droptofloor(float yaw, float dist)

Tries to "drop" an entity down up to 256 units in a single frame, as if it had fallen due to physics.

Parameters:

yaw - Unused?
dist - Unused?

Returns:

Returns TRUE if the entity landed on the ground and FALSE if it was still in the air.

Other Details:

Note the 256 unit limitation. Typically droptofloor is either to pre-place items and monsters on the ground after a map has loaded but if an entity is over 256 units from the ground, droptofloor will return false.