5 #define EXPLODE_ON_HIT 2
16 #define BITMAPNUKE 8192
17 #define BITMAPMASK 16128
19 #define ACTIVATION 1 // set or get
20 #define STANDINGMOVEORDERS 2 // set or get
21 #define STANDINGFIREORDERS 3 // set or get
22 #define HEALTH 4 // get (0-100%)
23 #define INBUILDSTANCE 5 // set or get
24 #define BUSY 6 // set or get (used by misc. special case missions like transport ships)
25 #define PIECE_XZ 7 // get
26 #define PIECE_Y 8 // get
27 #define UNIT_XZ 9 // get
28 #define UNIT_Y 10 // get
29 #define UNIT_HEIGHT 11 // get
30 #define XZ_ATAN 12 // get atan of packed x,z coords
31 #define XZ_HYPOT 13 // get hypot of packed x,z coords
32 #define ATAN 14 // get ordinary two-parameter atan
33 #define HYPOT 15 // get ordinary two-parameter hypot
34 #define GROUND_HEIGHT 16 // get
35 #define BUILD_PERCENT_LEFT 17 // get 0 = unit is built and ready, 1-100 = How much is left to build
36 #define YARD_OPEN 18 // set or get (change which plots we occupy when building opens and closes)
37 #define BUGGER_OFF 19 // set or get (ask other units to clear the area)
38 #define ARMORED 20 // set or get
41 #define CURRENT_SPEED 29
42 //#define MAGIC_DEATH 31
43 #define VETERAN_LEVEL 32
49 #define UNIT_BUILD_PERCENT_LEFT 73
50 #define UNIT_ALLIED 74
54 #define GROUND_WATER_HEIGHT 78 // get land height, negative if below water
55 #define UPRIGHT 79 // set or get
57 #define PRINT 81 // get, so multiple args can be passed
58 #define HEADING 82 // get
59 #define TARGET_ID 83 // get
60 #define LAST_ATTACKER_ID 84 // get
61 #define LOS_RADIUS 85 // set or get
62 #define AIR_LOS_RADIUS 86 // set or get
63 #define RADAR_RADIUS 87 // set or get
64 #define JAMMER_RADIUS 88 // set or get
65 #define SONAR_RADIUS 89 // set or get
66 #define SONAR_JAM_RADIUS 90 // set or get
67 #define SEISMIC_RADIUS 91 // set or get
68 #define DO_SEISMIC_PING 92 // get
69 #define CURRENT_FUEL 93 // set or get
70 #define TRANSPORT_ID 94 // get
71 #define SHIELD_POWER 95 // set or get
73 // Indices for SET, GET, and GET_UNIT_VALUE for LUA return values
74 #define LUA0 110 // (LUA0 returns the lua call status, 0 or 1)