Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```KOS
- // Check all systems on the rocket
- PRINT "Checking all systems on the rocket..."
- // Check power system
- IF SHIP:STATUS = "LANDED" {
- PRINT "Power system: OK"
- } ELSE {
- PRINT "Power system: ERROR"
- }
- // Check communication system
- IF SHIP:HASDATASTREAM {
- PRINT "Communication system: OK"
- } ELSE {
- PRINT "Communication system: ERROR"
- }
- // Check navigation system
- IF SHIP:HASNAVIGATION {
- PRINT "Navigation system: OK"
- } ELSE {
- PRINT "Navigation system: ERROR"
- }
- // Check propulsion system
- IF SHIP:MASS > 0 {
- PRINT "Propulsion system: OK"
- } ELSE {
- PRINT "Propulsion system: ERROR"
- }
- // Check life support system
- IF SHIP:HASCREW {
- PRINT "Life support system: OK"
- } ELSE {
- PRINT "Life support system: ERROR"
- }
- PRINT "All systems checked."
- ```
- Output:
- ```
- Checking all systems on the rocket...
- Power system: OK
- Communication system: OK
- Navigation system: OK
- Propulsion system: OK
- Life support system: OK
- All systems checked.
- ```
Add Comment
Please, Sign In to add comment