How to order my units to attack Power Cogs?

RivaillleRivaillle Posts: 11
edited February 13 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

  • JerffellyJerffelly Posts: 103

    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!