ents.GetAll

From GMod Wiki

Jump to: navigation, search
Function
Syntax ents.GetAll( )
Where is this used?
Description:
Find all entities
Returns: Table :Entity
Part of Library: Ents
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Ents.GetAll]Ents.GetAll [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints the class of every entity in the map
Used onNewerShared.png
Code
for k, v in pairs( ents.GetAll() ) do
	print(v:GetClass())
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox