diff --git a/OpenRA.Mods.RA/Scripting/Properties/HealthProperties.cs b/OpenRA.Mods.RA/Scripting/Properties/HealthProperties.cs index 0143f33983..b7f3793b43 100644 --- a/OpenRA.Mods.RA/Scripting/Properties/HealthProperties.cs +++ b/OpenRA.Mods.RA/Scripting/Properties/HealthProperties.cs @@ -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")]