• 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.

Unit id (object data)?

Status
Not open for further replies.
Level 6
Joined
May 31, 2008
Messages
218
I have never understood what the unit id is for, it's just a random number that comes up when you create or copy a unit i object editor..

I searched the forums for a explanation but couldn't find one.
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
Unit ID is unit's raw code. It is used for ''Specific Unit'' events/actions. In GUI, you can select icon and ID won't appear. Only unit's name.
  • Unit - Create 1 Rifleman for Player 1 (Red) at TempPoint facing Default building facing degrees
When you convert this function to JASS, you will get this:

call CreateNUnitsAtLoc( 1, 'hrif', Player(0), udg_TempPoint, bj_UNIT_FACING )

This is Rifleman's raw code.
 
Status
Not open for further replies.
Top