Add Actor.Guard

This commit is contained in:
Oliver Brakmann
2014-02-09 15:56:29 +01:00
parent bfc34df581
commit e65626cc6b
3 changed files with 26 additions and 4 deletions

View File

@@ -187,6 +187,10 @@ Actor.ReturnToBase = function(actor, airfield)
actor:QueueActivity(OpenRA.New("ReturnToBase", { actor, airfield }))
end
Actor.Guard = function(actor, target)
Internal.Guard(actor, target)
end
Actor.Patrol = function(actor, waypoints, wait, loop)
Utils.Do(waypoints, function(wpt)
Actor.AttackMove(actor, wpt.Location, 3)