only global vars!!

c-script:
Code:
var vCountBombs;
function main(){
  while(1){
    wait(1);
    if(bomb_emitted==1){
       vCountBombs -= 1;
       GSTNet_SendVar(0, "vCountBombs");
    }
  }
}



lite-c
Code:
GSTNet_SendVar(0, _str("vCountBombs"));




Andreas
GSTools - Home of
GSTScript 0.9.8: lua scripting for A6/7/8
GSTNet 0.7.9.20: network plugin for A6/7/8
GSTsqlite 1.3.7: sql database plugin for A6/7/8
3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files