1 'use strict';
  2 
  3 // ==========================================================================
  4 // Reset Crate
  5 // ==========================================================================
  6 
  7 // call it with: .js doCrateReset.js crate0=true crate3=true
  8 //           or: DIM_CONTROL/START doCrateReset.js crate0=true crate3=true
  9 
 10 // -------------------------------------------------------------------------
 11 
 12 include('scripts/CheckStates.js');
 13 
 14 var crates =
 15 [
 16      $['camera']=='true' || $['crate0']=='true',
 17      $['camera']=='true' || $['crate1']=='true',
 18      $['camera']=='true' || $['crate2']=='true',
 19      $['camera']=='true' || $['crate3']=='true'
 20 ];
 21 
 22 include('scripts/crateReset.js');
 23 
 24 crateReset(crates);
 25