Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

Full API reference for Python


Specifically, I’m looking for information about what members are present on what objects. I didn’t know until late in the forest that the result returned by self.findNearestEnemy has a “pos” property. I tried:


But the interpreter choked on it. I was hoping for some sort of “id” field, so I can determine when self.findNearestEnemy is returning a new enemy, or other ways to determine when I’ve killed my previous target.

#2 <= 0

is what I use (Well, actually the opposite, alive is: > 0)


Here are the one’s that I know of.



[searching] Complete List of options

Standard enemies also have a target property and the distanceTo, hasEffect, and findNearest methods.

At some point we’ll be able to show you those API properties by either clicking on the unit you want to know about, or hovering over it using the hover debugger, but I haven’t gotten any good UI ideas for the first one, and I haven’t fixed the remaining bugs to re-enable the second one yet.



you can see in detail all propieties in :

select a enemy
and pick the properties tab


Or all list in:

documentation tab