More Lua API enhancements

This commit is contained in:
Oliver Brakmann
2014-06-30 00:08:48 +02:00
parent a1ce37ddc5
commit 5140ce4762
5 changed files with 98 additions and 8 deletions

View File

@@ -27,4 +27,17 @@ namespace OpenRA.Mods.RA.Scripting
self.QueueActivity(new Fly(self, Target.FromCell(self.World, cell)));
}
}
[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(Target.FromActor(target)));
}
}
}