|
例如凤凰战机把单位举起来后,单位死亡后是没有尸体动画的,这是怎么做到的呢?
是这段代码起作用的吗?原理是啥?
<CActorModel id="GravitonBeamImpact" parent="ModelAnimationStyleContinuous">
<AutoScaleFactor value="0.700000"/>
<Host Subject="_Unit"/>
<HostSiteOps Ops="SOpAttachCenter"/>
<On Terms="Effect.GravitonBeam.Start; At Target" Send="Create"/>
<On Terms="Effect.GravitonBeam.Stop; At Target" Send="Create GravitonBeamImpactDeath"/>
<On Terms="Effect.GravitonBeam.Stop; At Target" Send="Destroy"/>
</CActorModel>
<CActorModel id="GravitonBeamImpactDeath">
<Flags index="SuppressSaveLoad" value="1"/>
<Model value="GravitonBeamImpact"/>
<AutoScaleFactor value="0.700000"/>
<Host Subject="_Unit"/>
<HostSiteOps Ops="SOpAttachCenterStationary"/>
<On Terms="ActorCreation" Send="$Death"/>
<On Terms="AnimDone; AnimName Death" Send="Destroy"/>
</CActorModel> |
|