UNIT_TYPE constant for get

UNIT_TYPE constant for get

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

UNIT_TYPE constant for get

Post by KDR_11k »

Would be nice if we could determine a unit's type via get UNIT_TYPE (unitID), the UNIT_HEIGHT workaround is kinda dirty. I'm not sure what kind of return type we'd get, though. Variables can only be integers, right?
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

Well, a quick way to test the number only theory, using a shield unit:

static-var blah;
#define CHECK text

Create() {
blah = text;
}

AimWeapon1() {
if(blah == CHECK) {
return TRUE;
}
}

If the shield turns on, then it accepts text.

Regardless, I agree, it'd be nice to be able to do this.
Post Reply

Return to “Feature Requests”