Add a panic function to the Lua API.

This commit is contained in:
Matthias Mailänder
2020-06-06 10:46:51 +02:00
committed by reaperrr
parent 318c4e3456
commit 6130d5622c
2 changed files with 37 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Traits
mobile = self.Trait<Mobile>();
}
void Panic()
public void Panic()
{
if (!Panicking)
self.CancelActivity();