Garry's Mod Wiki

Revision Difference

scripted_ents.GetList#565625

<function name="GetList" parent="scripted_ents" type="libraryfunc"> <file line="228-L236">lua/includes/modules/scripted_ents.lua</file> <description>Returns a copy of the list of all ENT tables registered</description> <realm>Shared</realm> <rets> <ret name="" type="table">A table of all entities in the following format: (table keys are the classnames)⤶ * <page>table</page> t - The <page text="ENT">Structures/ENT</page> table associated with the entity * <page>boolean</page> isBaseType - Always true⤶ * <page>string</page> Base - The entity base (note capital B in the key name)⤶ * <page>string</page> type - The entity type</ret> <ret name="" type="table<string, table>">A table of all SENTs where the key is the classname and the value is a table where:⤶ * <page>table</page> **t** — The <page text="ENT">Structures/ENT</page> table associated with the entity * <page>boolean</page> **isBaseType** — Unused. Always `true`⤶ * <page>string</page> **Base** — The entity base⤶ * <page>string</page> **type** — The entity type</ret> </rets> </function>