Posted by Nathan Lauterstein on March 16, 1998 at 11:26:51:
CogKing, here is the cog file that if a switch was activated it would turn off
the no gravity flag in a particular sector, it would remain off until the switch was hit again.
Right now, this cog can't seem to get the switch activated or turn off the no gravity flag,
can you take a look and see what is wrong. Thanks!
Nathan Lauterstein
symbols
surface switch1
sector sec
message activated
end
code
activated:
If(GetSectorflags(sec) == 1)
{
SetWallCel(switch1 == 1);
ClearSectorFlags(sec,1);
}
If(GetSectorflags(sec) == 0)
{
SetWallCel(switch1 == 0);
SetSectorFlags(sec,1);
}
return;
end