ents.FindByModel

From GMod Wiki

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



Example

DescriptionThis example finds all the entities with the huge chimney model
Used onNewerShared.png
Code
local chimneys = ents.FindByModel("models/props_animated_breakable/Smokestack.mdl")
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox