Garry's Mod Wiki
Description
Returns a Stateless Iterator for all entities.
Intended for use in Generic For Loops.
See player.Iterator for a similar function for all players.
Internally, this function uses cached values that exist entirely within lua, as opposed to ents.GetAll, which is a C++ function. Because switching from lua to C++ (and vice versa) incurs a performance cost, this function will be somewhat more efficient than ents.GetAll.
Returns
Modifying the return table will affect all subsequent calls to this function until the cache is refreshed, replacing all of your ents.GetAll usages may come with unintended side effects because of this.
This is always
0
and is returned for the benefit of Generic For LoopsExample
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...