Re: CogKing, can you take a look at this


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

Posted by CogKing on March 16, 1998 at 13:09:21:

In Reply to: CogKing, can you take a look at this 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

This syntax is wrong :
SetWallCel(switch1 == 1);

Use :
SetWallCel(switch1, 1);

-CogKing


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]