Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Editing droptofloor
From Quake Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | ====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. | |
− | Tries to | + | ====Parameters:==== |
− | + | :<code>yaw</code> - Unused? | |
− | + | :<code>dist</code> - 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. | |
− | == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:QuakeC Function]] | [[Category:QuakeC Function]] |