How to get dead unit in a range.

I try to get dead units in a range by using FindUnitsInRadius(), but doesn't see this Unit Target Flags constant: "DOTA_UNIT_TARGET_FLAG_DEAD" work in this function. Could anyone tell me where i am doing wrong?

``` local deadBodies = FindUnitsInRadius(caster:GetTeam(), casterLocation, nil, radius, DOTA_UNIT_TARGET_TEAM_BOTH, DOTA_UNIT_TARGET_BASIC, DOTA_UNIT_TARGET_FLAG_DEAD, 0, false)

```

Comments

  • ZeeZee
    Posts: 4

    This is an accidently post. ignore it plz.