· 3 years ago · Feb 23, 2022, 12:00 AM
1-- Gets the API instance for this specific computer
2MyAPI = security.getContext()
3
4-- registers the buttons at the given coordinates
5-- method signatre: context, x, y, z, id
6CheckpointButton1 = security.registerButton(MyAPI, 423, 67, -2478, 1)
7CheckpointButton2 = security.registerButton(MyAPI, 462, 64, -1978, 2)
8CheckpointButton3 = security.registerButton(MyAPI, 423, 63, -2478, 3)
9
10-- gives the key card access to all 3 checkpoints
11-- method signatre: context, drive_direction, ids...
12-- drive_direction is the direction of the disk drive, relative to the computer's direction (aka the front with the screen)
13security.loadSecurityCode(MyAPI, "east", 1, 2, 3)
14