It is possible to embed Lua scripts into missions with LuaScript / LuaScriptFile keys.
The scripts are parsed once when the game switches a mission, or when the map reset vote is called
Mission lua scripts are managed by $script_manager entity called popscript
scripts/globals.lua is always parsed before mission scripts
scripts/library.lua contains function definitons provided by the game library
Profiling[edit | edit source]
It is possible to measure script performance with sig_lua_prof_start and sig_lua_prof_end client commands