Ents

From GMod Wiki

Jump to: navigation, search

ents is the entities library. This is probably one of the most important libraries in Gmod Lua, as it allows scripts to create entities, find entities, etc. (If it vanished, right now, you wouldn't spawn at "info_player_start" and many popular gamemodes would be broken)

Library Functions

NewerServer.png ents.FindByName
NewerShared.png ents.FindByModel
NewerShared.png ents.Create
NewerShared.png ents.FindByClass
NewerShared.png ents.FindInBox
NewerShared.png ents.FindInCone
NewerShared.png ents.FindInSphere
NewerShared.png ents.GetAll
NewerShared.png ents.GetByIndex

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox