source: branches/FACT++_part_filenames/scripts/doCrateReset.js

Last change on this file was 17012, checked in by tbretz, 11 years ago
Move code to crateReset.js to be able to access that also from Main.js
File size: 707 bytes
Line 
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
12include('scripts/CheckStates.js');
13
14var crates =
15[
16 $['camera']=='true' || $['crate0']=='true',
17 $['camera']=='true' || $['crate1']=='true',
18 $['camera']=='true' || $['crate2']=='true',
19 $['camera']=='true' || $['crate3']=='true'
20];
21
22include('scripts/crateReset.js');
23
24crateReset(crates);
Note: See TracBrowser for help on using the repository browser.