Hello,
what shall I code if the opponent has teleported enemies to your base and you want to teleport it back at that exact time. Please could you be so kind to help.
I have been struggling on this code for the past 2 days
Hey Moonwatcher348,
I wanted to develop a code in Tundra Tower that can teleport enemies back if they have just recently been teleported from the enemy side at the end x and y coordinates. How would i be able to do that?
Regards
for (let effect of hero.findActiveAnomalies()) {
if (effect.name === 'teleport') {
if (hero.isReady('teleport')) hero.special('teleport', effect.endX, effect.endY);
}
}
Python:
for effect in hero.findActiveAnomalies():
if effect.name is 'teleport':
if hero.isReady('teleport'):
hero.special('teleport', effect.endX, effect.endY);
hero.on(spawn, guardAct) or something like that should be in your code. Can you make sure it is still there? Also, abilities act on a cooldown. If you want to use your abilities in that you’ll have to incroporate it into the while(true) loop.