My friend needs help with a cog from a level and I know nothing of them. Anyways, it's Darth Gnarl using a Jeff Walters cog and here's the cog:
code
startup:
SetWallCel(decider,0);
return;
# ........................................................................................
activate:
if ((GetWallCel(decider) == 0) && (GetSenderId() == 1))
{ SendTrigger(-1, 600000 + curtID, decider, 1, curtainwav, 0);
//Open curtains
}
else if ((GetWallCel(decider) == 1) && (GetSenderId() == 1))
{ SendTrigger(-1, 600000 + curtID, decider, 12, curtainwav, 0);
//Close curtains
}
return;
He said the problem is that the curtain opens but doesn't close... and that he can't figure out what the decider is. I can't help so I came here. Thanks.
Edit: It's a Jeff Walters cog.
------------------
Cower before my blades as I manipulate time to slaughter your pitiful, mortal body.
[This message has been edited by sHRiKE (edited May 20, 2003).]
code
startup:
SetWallCel(decider,0);
return;
# ........................................................................................
activate:
if ((GetWallCel(decider) == 0) && (GetSenderId() == 1))
{ SendTrigger(-1, 600000 + curtID, decider, 1, curtainwav, 0);
//Open curtains
}
else if ((GetWallCel(decider) == 1) && (GetSenderId() == 1))
{ SendTrigger(-1, 600000 + curtID, decider, 12, curtainwav, 0);
//Close curtains
}
return;
He said the problem is that the curtain opens but doesn't close... and that he can't figure out what the decider is. I can't help so I came here. Thanks.
Edit: It's a Jeff Walters cog.
------------------
Cower before my blades as I manipulate time to slaughter your pitiful, mortal body.
[This message has been edited by sHRiKE (edited May 20, 2003).]