Added Kill function to lua

This commit is contained in:
abcdefg30
2014-10-05 12:23:50 +02:00
parent b85cff62d3
commit 8bd64f6a66

View File

@@ -33,6 +33,12 @@ namespace OpenRA.Mods.RA.Scripting
[Desc("Maximum health of the actor.")]
public int MaxHealth { get { return health.MaxHP; } }
[Desc("Kill the actor.")]
public void Kill()
{
health.InflictDamage(self, self, health.MaxHP, null, true);
}
}
[ScriptPropertyGroup("General")]