sniper can go into pillbox and garrision church

This commit is contained in:
Matthias Mailänder
2012-07-27 23:28:00 +02:00
committed by Chris Forbes
parent 02f28f54c7
commit 45fbecbcd0
5 changed files with 83 additions and 10 deletions

View File

@@ -21,6 +21,7 @@ namespace OpenRA.Mods.RA
[ActorReference] public readonly string OnEnter = null;
[ActorReference] public readonly string OnExit = null;
public readonly bool SkipMakeAnims = false;
public readonly bool BecomeNeutral = false;
public object Create(ActorInitializer init) { return new TransformOnPassenger(this); }
}
@@ -43,6 +44,7 @@ namespace OpenRA.Mods.RA
self.CancelActivity();
self.QueueActivity(transform);
if (info.BecomeNeutral) self.ChangeOwner(self.World.WorldActor.Owner);
});
}
}