Posted by Kenobi on November 07, 1998 at 18:47:29:
In Reply to: Very annoying Damage COG!!! posted by Catmaster on November 07, 1998 at 18:25:10:
: I have been having problems setting up a shootable switch. I have used door_switch.cog to control the door and have written this cog to control the shooty side of it. Please help me!
: COG:
: symbols
: message damaged
: surface shootswitch
: cog sendto
: end
: code
: damaged:
: SetWallCel(shootswitch,1);
: SendMessage(sendto,activated);
: Sleep(5);
: SetWallCel(shootswitch,0);
: Return;
Hum, I'm using a standard mat switch without a separate cog to turn off/on a force field and when I shoot it it works fine. maybe that' all you need?. ...Kenobi