Are there any global variables useable?
For example "globaltime" or so which you can use in any unitscript.
I dont think so, but who knows.
Global variables useable?
Moderator: Moderators
Code: Select all
// Indices for set/get value
#define ACTIVATION 1 // set or get
#define STANDINGMOVEORDERS 2 // set or get
#define STANDINGFIREORDERS 3 // set or get
#define HEALTH 4 // get (0-100%)
#define INBUILDSTANCE 5 // set or get
#define BUSY 6 // set or get (used by misc. special case missions like transport ships)
#define PIECE_XZ 7 // get
#define PIECE_Y 8 // get
#define UNIT_XZ 9 // get
#define UNIT_Y 10 // get
#define UNIT_HEIGHT 11 // get
#define XZ_ATAN 12 // get atan of packed x,z coords
#define XZ_HYPOT 13 // get hypot of packed x,z coords
#define ATAN 14 // get ordinary two-parameter atan
#define HYPOT 15 // get ordinary two-parameter hypot
#define GROUND_HEIGHT 16 // get
#define BUILD_PERCENT_LEFT 17 // get 0 = unit is built and ready, 1-100 = How much is left to build
#define YARD_OPEN 18 // set or get (change which plots we occupy when building opens and closes)
#define BUGGER_OFF 19 // set or get (ask other units to clear the area)
#define ARMORED 20 // set or get
/*#define WEAPON_AIM_ABORTED 21
#define WEAPON_READY 22
#define WEAPON_LAUNCH_NOW 23
#define FINISHED_DYING 26
#define ORIENTATION 27*/
#define IN_WATER 28
#define CURRENT_SPEED 29
//#define MAGIC_DEATH 31
#define VETERAN_LEVEL 32
#define ON_ROAD 34
#define MAX_ID 70
#define MY_ID 71
#define UNIT_TEAM 72
#define UNIT_BUILD_PERCENT_LEFT 73
#define UNIT_ALLIED 74
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07
-
- Posts: 501
- Joined: 18 May 2006, 21:19
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07