skadistats / clarity-examples

Example code for clarity
BSD 3-Clause "New" or "Revised" License
115 stars 38 forks source link

Getting unit Entities from CombatLog #25

Closed TodorovicF closed 8 years ago

TodorovicF commented 8 years ago

I'm using the CombatLog to get some information on targets and attackers, but the only unit information that seems available are the name and the team through getAttackerName/getTargetName, and getAttackerTeam/getTargetTeam. If, for instance, the target or attacker is a neutral/lane creep, is there any way I can get that specific unit's Entity? So if I get a "npc_dota_creep_badguys_ranged" from the CombatLog, how can I get its Entity so that I can extract other data like position? Thanks!

spheenik commented 8 years ago

Nope, there isn't.

TodorovicF commented 8 years ago

No worries, thanks so much for replying and for the awesome parser!

spheenik commented 8 years ago

You're welcome :)

spheenik commented 8 years ago

I gotta add, this would be a really useful addition from Valve.