Entity:DropToFloor
Description
Move an entity down until it collides with something.
The entity needs to already have something below it within 256 units.
Arguments
1 number mask = MASK_SOLID
Trace mask.
This was recently added in version (2025.09.18). It might only be available on the Dev Branch right now.
2 Entity ignoreEnt = nil
Trace ignore entity.
This was recently added in version (2025.09.18). It might only be available on the Dev Branch right now.
3 number maxDist = 256
Max trace dist.
This was recently added in version (2025.09.18). It might only be available on the Dev Branch right now.
Example
Move all props on the server down until they collide with something.
Example
Drops players to the ground when they spawn.