Expose a Attack method to lua

This commit is contained in:
abcdefg30
2015-05-28 23:56:44 +02:00
parent 87c2e68973
commit 6527d7751b
2 changed files with 15 additions and 13 deletions

View File

@@ -35,17 +35,4 @@ namespace OpenRA.Mods.Common.Scripting
Self.QueueActivity(new ReturnToBase(Self, airfield));
}
}
[ScriptPropertyGroup("Combat")]
public class PlaneCombatProperties : ScriptActorProperties, Requires<AttackPlaneInfo>
{
public PlaneCombatProperties(ScriptContext context, Actor self)
: base(context, self) { }
[Desc("Fly an attack against the target actor.")]
public void Attack(Actor target)
{
Self.QueueActivity(new FlyAttack(Self, Target.FromActor(target)));
}
}
}