This cog makes it so that when the player enters a sector, all three walls and a fake door explode in a hallway, and rock is revealed.
I got this to work w/o a timer, but it crashed the game. I'm positive everything else works, as before the game crashed I saw and heard explosions and the walls disappeared.
I looked at the XTANK cog, and saw they had the same bug and fixed it with the TimerEx command, but I really can't figure that command out, and am thus requesting help.
Previously, the Create Explosions, and DestroyThings were right under the If statement in the entered message.
------------------
Cordially,
Lord Tiberius Grismath
Head Administrator
GCWC.net
[This message has been edited by Lord_Grismath (edited October 27, 2001).]
I got this to work w/o a timer, but it crashed the game. I'm positive everything else works, as before the game crashed I saw and heard explosions and the walls disappeared.
I looked at the XTANK cog, and saw they had the same bug and fixed it with the TimerEx command, but I really can't figure that command out, and am thus requesting help.
Previously, the Create Explosions, and DestroyThings were right under the If statement in the entered message.
Code:
symbols
message entered
message timer
sector entersect
thing wall1
thing wall2
thing wall3
thing extra
template explosion=+xtank1_exp\
end
# ========================================================================================
code
entered:
if(GetSenderRef() == entersect) {
SetTimerEx(0.5, 0, 0);
}
return;
timer:
KillTimerEx(GetSenderId());
CreateThing(explosion, wall1);
CreateThing(explosion, wall2);
CreateThing(explosion, wall3);
CreateThing(explosion, wall4);
CreateThing(explosion, extra);
DestroyThing(wall1);
DestroyThing(wall2);
DestroyThing(wall3);
DestroyThing(wall4);
DestroyThing(extra);
Return;
# ........................................................................................
end
------------------
Cordially,
Lord Tiberius Grismath
Head Administrator
GCWC.net
[This message has been edited by Lord_Grismath (edited October 27, 2001).]


![http://forums.massassi.net/html/wink.gif [http://forums.massassi.net/html/wink.gif]](http://forums.massassi.net/html/wink.gif)