port allies-01 to new Lua API
This commit is contained in:
@@ -34,5 +34,12 @@ namespace OpenRA.Mods.RA.Scripting
|
||||
{
|
||||
self.QueueActivity(new Move.Move(cell));
|
||||
}
|
||||
|
||||
[ScriptActorPropertyActivity]
|
||||
[Desc("Leave the current position in a random direction.")]
|
||||
public void Scatter()
|
||||
{
|
||||
self.Trait<Mobile>().Nudge(self, self, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user