I looking for a script for to have list of all entity: trigger_use ONLY of the map because
if map("trigger_use")==1 then-- error no exist
![cs2d lua cmd](img/i_codehelp.png)
noweapons: are weapons allowed? 0/1
teleporters: are there any teleporters? 0/1
botnodes: number of bot nodes
teleporters: are there any teleporters? 0/1
botnodes: number of bot nodes
but not trigger_use
![](img/smiles/cry.gif)
I tested of myself but i have LUA ERROR: sys/lua/autorun/entitylist.lua:4: bad argument #1 to 'pairs' (table expected, got nil) or LUA ERROR: sys/lua/autorun/entitylist.lua:4: bad argument #1 to 'pairs' (table expected, got number) or near '<eof>' or other errors or no error and no works
![](img/smiles/halfhead.gif)
Thanks at advance.