Entity.DropToFloor
From GMod Wiki
Function | |
Syntax | Entity:DropToFloor( ) |
Description: | |
Teleports the entity to the floor. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.DropToFloor]Entity.DropToFloor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Teleports all props to the floor. |
---|---|
Used on | |
Code | for k,v in pairs(ents.FindByClass("prop_*")) do v:DropToFloor() end |
Output | All props are teleported to the floor |