I use /g_scriptdebug 1 alot but i didn’t know you can produce a log-file with /logfile 1 , Thanks for the info, a very usefull command for checking your script.
Well, I added "wm_announce “Defused triggered!!!” to the script but it seems that whatever is in the “defused” part just doesn’t get triggered.
here’s the log:
logfile opened on Thu Apr 29 22:32:04 2004
]/set g_scriptdebug 1
110950 : (maindoor1_trig) GScript event: dynamited
110950 : (maindoor1_trig) GScript command: togglespeaker maindooralarm
Planted at the Main Entrance to the Rocket Base.
114500 : (n/a) GScript event: playerstart
[skipnotify]FireFly^7 entered the game
FireFly^7 has joined the Axis team^7!
125000 : (maindoor1) GScript event: defused
Defused at the Main Entrance to the Rocket Base.
----- Server Shutdown -----
==== ShutdownGame ====
---------------------------
----- CL_Shutdown -----
RE_Shutdown( 1 )
Shutting down OpenGL subsystem
...wglMakeCurrent( NULL, NULL ): success
...deleting GL context: success
...releasing DC: success
...destroying window
...resetting display
...shutting down QGL
...unloading OpenGL DLL
-----------------------
strange, although the game recognizes the “defused” statement as you can see in the log-file above, it doesn’'t trigger the wm_anounce statement nor does it trigger the togglespeaker statement as it does when the dynamite is planted…
maindoor1_trig
{
spawn
{
}
dynamited
{
togglespeaker maindooralarm
}
defused
{
wm_announce "Defused triggered!!!"
togglespeaker maindooralarm
}
}