How to order my units to attack Power Cogs?

RivaillleRivaillle Posts: 12
edited February 2018 in Development

I'm doing like this:

var clockCogs =
ObjectManager.GetEntitiesFast()
.Where(
x =>
(x.ClassId == ClassId.CDOTA_Ability_Rattletrap_PowerCogs))
.ToList();

Since its not a Unity, I have to use Entity.

Then if I try:

myUnit.attack(cog)

It does not work.

So, how do I do that?

Edit: I think I'm using the wrong Class Id, but I could not find the unity Power Cogs, what is its class id?

Tagged:

Comments

  • I may be wrong but
    ClassId.CDOTA_Ability_Rattletrap_PowerCogs it's ability, for ex you can cast this ability and so on..

    Already casted power cogs may be something different.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!