Entity.DropToFloor

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:DropToFloor( )
Description:
Teleports the entity to the floor.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.DropToFloor]Entity.DropToFloor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionTeleports all props to the floor.
Used onNewerServer.png
Code
for k,v in pairs(ents.FindByClass("prop_*")) do
 v:DropToFloor()
end
OutputAll props are teleported to the floor


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox