Identifier Suffix @ How does this work?
Posted: Tue May 02, 2017 12:27 am
I made this under helicopter on TD default.yaml the plan is to make all the air units visible on the air,but the code it doesn't work as i imagined.
And i get this in short
So is this even possible? how you make this work?
p.s. any tutorials on Identifier Suffix will be a welcome addition, thanks.
Code: Select all
^Helicopter:
HiddenUnderFog@GROUND:
AlwaysVisibleStances: Ally
Type: CenterPosition
RequiresCondition: !airborne
HiddenUnderFog@AIRBORNE:
AlwaysVisibleStances: Ally, Enemy
Type: CenterPosition
RequiresCondition: airborne
Code: Select all
Exception of type `System.InvalidOperationException`: Actor tran has multiple traits of type `OpenRA.Traits.IDefaultVisibility`
at OpenRA.TraitDictionary.TraitContainer`1.GetOrDefault(UInt32 actor)
at OpenRA.TraitDictionary.TraitContainer`1.Get(UInt32 actor)
at OpenRA.TraitDictionary.Get[T](Actor actor)
at OpenRA.Actor.Trait[T]()
at OpenRA.Actor..ctor(World world, String name, TypeDictionary initDict)
at OpenRA.World.CreateActor(Boolean addToWorld, String name, TypeDictionary initDict)
at OpenRA.World.CreateActor(String name, TypeDictionary initDict)
at OpenRA.Mods.Common.Traits.ProductionFromMapEdge.<Produce>c__AnonStorey0.<>m__1(World w)
at OpenRA.World.Tick()
at OpenRA.Game.InnerLogicTick(OrderManager orderManager)
at OpenRA.Game.LogicTick()
at OpenRA.Game.Loop()
at OpenRA.Game.Run()
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)
p.s. any tutorials on Identifier Suffix will be a welcome addition, thanks.