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;