• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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