CodeComnat-猎人三胞胎

// This spell runs once per frame.
var enemy = this.getNearestEnemy();
if (!enemy) return;
this.say("Die, " + enemy.id + "!");
this.setTarget(enemy);
//this.setAction("attack");  // Charge!
if (this.distanceTo(enemy)>this.attackRange)
    this.setAction("move");
else
    this.setAction("attack");


游戏截图:

CodeComnat-猎人三胞胎_第1张图片

你可能感兴趣的:(CodeComnat-猎人三胞胎)