You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
445 B

5 years ago
5 years ago
5 years ago
  1. #include "../include/mindustry.h"
  2. extern struct MindustryObject message1;
  3. extern struct MindustryObject swarmer1;
  4. extern struct MindustryObject conveyor1;
  5. void main(void) {
  6. struct MindustryObject player = radar(swarmer1, "player", "any", "any", "distance", 0);
  7. double x = sensor(player, "x");
  8. double y = sensor(player, "y");
  9. printd(x);
  10. print("\n");
  11. printd(y);
  12. printflush(message1);
  13. enable(conveyor1, x < 10);
  14. shoot(swarmer1, 0, 0, 1);
  15. }