• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[JASS] Help!!please

Status
Not open for further replies.
What do you mean, "Unit ID". A unit's ID is determined by it's raw-code (which is returned, as Bribe says, with GetUnitTypeId()). In the object editor it can be found by pressing Ctrl+D, which replaces the objects' names with raw-code data IDs.
 
It's weird, actually, when I make a GUI variable that is of the "Unit-Type" type, declare it and use it in a call statement it seems like the type is treated exactly as an integer, though when I define a global unittype variable and define it to the same thing as I did in the GUI version it tells me that it cannot convert a unit-type to an integer. This leads me to believe that GUI doesn't even use unittype, instead it simply uses an integer.

Yea, this is what it reads in the map script (the unit-type declaration in the GUI):

JASS:
integer udg_What= 0

That is how it is declared, and as you can see they do not even use their own useless type.
 
Status
Not open for further replies.
Back
Top