Lua taglib for accessing taggroups
The global "tags" can be iterated upon for every unique tag which is set in the level. If a tag is set on a sector/line/thing, it will be included. Taking the length of "tags" will give you the number of these unique tags. (If a tag is set on multiple sectors/lines/things, it will only be counted once though.) For sectors, lines and mapthings, call the field "tagged". This function takes one argument, which is the tag. The return value can be iterated over for all the sectors/lines/things with that tag. The length can also be taken for the number of such objects. If no argument is given, the global tag is default.
Showing
- src/CMakeLists.txt 1 addition, 0 deletionssrc/CMakeLists.txt
- src/blua/Makefile.cfg 1 addition, 0 deletionssrc/blua/Makefile.cfg
- src/doomtype.h 22 additions, 0 deletionssrc/doomtype.h
- src/lua_libs.h 1 addition, 0 deletionssrc/lua_libs.h
- src/lua_maplib.c 18 additions, 42 deletionssrc/lua_maplib.c
- src/lua_mobjlib.c 9 additions, 22 deletionssrc/lua_mobjlib.c
- src/lua_script.c 56 additions, 3 deletionssrc/lua_script.c
- src/lua_script.h 42 additions, 6 deletionssrc/lua_script.h
- src/taglist.c 48 additions, 42 deletionssrc/taglist.c
- src/taglist.h 10 additions, 0 deletionssrc/taglist.h
Loading
Please register or sign in to comment