ents.FindByModel
From GMod Wiki
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Ents.FindByModel]Ents.FindByModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | This example finds all the entities with the huge chimney model |
---|---|
Used on | |
Code | local chimneys = ents.FindByModel("models/props_animated_breakable/Smokestack.mdl") |
Output | N/A |