|
发表于 2011-3-31 22:01:45
|
显示全部楼层
这东西不是用一般的Actor事件实现的。
有专门的类CActorProgress。举例来说,人类的建造。
[codes=xml]
<CActorProgress id="TerranConstruction">
<On Terms="Abil.TerranBuild.BuiltStart" Send="Create"/>
<On Terms="Abil.BarracksAddOns.BuiltStart" Send="Create"/>
<On Terms="Abil.FactoryAddOns.BuiltStart" Send="Create"/>
<On Terms="Abil.StarportAddOns.BuiltStart" Send="Create"/>
<On Terms="Abil.MachineShop.BuiltStart" Send="Create"/>
<On Terms="ProgressLevel.TerranConstruction.Start; Level 0" Send="SetTransferOverrideAnim Build,A,Stand"/>
<On Terms="ProgressLevel.TerranConstruction.Stop; Level 0" Send="SetTransferOverrideAnim"/>
<StageArray AnimProps="Build,A,Start" BlendTime="0.000000"/>
<StageArray AnimProps="Build,A,Stand"/>
<StageArray AnimProps="Build,B,Start"/>
<StageArray AnimProps="Build,B,Stand"/>
<StageArray AnimProps="Build,C,Start"/>
<StageArray AnimProps="Build,C,Stand"/>
<StageArray AnimProps="Build,D"/>
</CActorProgress>
[/codes]
直接分7个阶段,每个阶段一个动画。 |
|