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.
15 lines
442 B
15 lines
442 B
#include "c2logic/builtins.h"
|
|
extern struct MindustryObject message1;
|
|
extern struct MindustryObject swarmer1;
|
|
extern struct MindustryObject conveyor1;
|
|
void main(void) {
|
|
struct MindustryObject player = radar(swarmer1, "player", "any", "any", "distance", 0);
|
|
double x = sensor(player, "x");
|
|
double y = sensor(player, "y");
|
|
printd(x);
|
|
print("\n");
|
|
printd(y);
|
|
printflush(message1);
|
|
enable(conveyor1, x < 10);
|
|
shoot(swarmer1, 0, 0, 1);
|
|
}
|