Thanks, it works... Sort of.
New problem: If I have the destruct scenery change the tile into an animated tile(Using WebJCS), the script doesn't work(Although, if I use a non-animated tile, it works perfectly).
Here's what the code looks like now:
Code:
void onMain() {
if ((jjTileGet(4,10,28) == 0) && (jjTriggers[1] == false) == true) {
jjSwitchTrigger(1);
}
}
(The extra part I put that checks if the trigger is on prevents it from toggling the trigger every gametick)
__________________
|