ents.FindByModel

From GMod Wiki

Revision as of 21:15, 19 August 2010 by MulleDK13 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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