• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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