Originally Posted by AfterShock
SERVER LOGGING: added valve-standard LUA triggered logs. use like this:
LogLuaEvent(int victimID, int attackerID, string eventname)
LogLuaEvent(int victimID, int attackerID, string eventname, string key0, string value0)
LogLuaEvent(int victimID, int attackerID, string eventname, string key0, string value0, string key0, string value0, string key1, string value1)
LogLuaEvent(int victimID, int attackerID, string eventname, string key0, string value0, string key0, string value0, string key1, string value1, string key2, string value2)
e.g.
LogLuaEvent(0, player:GetId(), "flag_touch", "flag_name", flag:GetName())
outputs
L 09/18/2008 - 00:50:33: "AfterShock<1><STEAM_ID_LAN><#FF_TEAM_BLUE>" triggered "flag_touch" (flag_name "yellow_flag")
For world triggered stuff just called with ID 0 for both players
e.g.
LogLuaEvent(0, 0, "flag_returned", "flag_name", flag:GetName());
outputs
L 09/18/2008 - 00:58:58: World triggered "flag_returned" (flag_name "green_flag")
|