I was wondering if there were specific EUD addresses for specific units being selected. And i also wanted to know if there's a difference between the address if its the players unit or an enemy unit. Right now i need the address for enemy marines being selected, if anyone knows how to get those.
None.
Use the
search function please. If you are confused about it don't hesitate to ask.
None.
alright, but what would i put for deaths if i wanted to detect a terran marine
None.
Are you trying to detect a single unit or a lot of units?
None.
If the unit preplaced and won't die and be recreated and know what the unit number is then you can easily create the trigger. By unit number I mean the first unit placed on the map has a unit Id of 1700, the second unit has an Id of 1, and the third unit has an Id of 2 and so on. If you do not know the number then you can find the death value at address 6284E8 through 628638 in artmoney.
None.
what about detecting units that have been created later on in the map with triggers
None.
Then my method won't work, unless the unit's Id is the same every game. I'll try to find another EUD method for you.
None.
alright, does the unit id in the unit properties have anything to do with this?
None.
An artist's depiction of an Extended Unit Death
I use this address to detect the UnitID of the selected unit: 68C14C
To detect if a Marine (Unit ID: 0) is selected, the condition would look like this:
Memory(264058, Exactly, 0);
264058 = Address 68C14C
0 = Unit ID
Oddly enough, the ID for no unit selected is 228...
This won't detect if the selected unit is an enemy, though.
holy crap thank you, it works perfectly! So i'm guessing that if i stuck a different unit id in there it would detect a different unit.
None.
I found another method.
Memory(-13043, Exactly, 0);
This EUD detects when you select your own unit. (green selection circle) Memory(-13043, Exactly, 1);
This EUD detects when you select an enemy. (red selection circle) Memory(-13043, Exactly, 2);
This EUD detects when you select an ally or player 12. (yellow selection circle) Memory(264058, Exactly, 0);
This EUD detects the currently selected unit number (Marine=0, Ghost=1, and so on)Note: With selection circle detection you have to click the unit twice it to recognize the change in value.
None.
thanks morph that's is gonna be real good for testing, and thanks roy. This topic has served its purpose.
None.
Oops... I didn't even see Roy's post. This would have saved me a whole two minutes of testing the selected unit number.
None.