PDA

View Full Version : [Support] Facing, forcing unit facing direction



dandylion
04-06-2011, 06:53 PM
So, I've been working on a skill much like Valkyrie's leap. However, instead of making the leap in the direction you're facing, I've made it in the opposite direction. While that portion of the skill works, when the hero is in mid flight, they turn to face the direction they are moving. Is there any way to force them to maintain their current facing so that they land facing the same way that started?



<onimpact>
<unbind target="source_entity" />
<disjoint target="source_entity" />
<spawnunit name="Gadget_Disengage" target="source_entity" offset="0 -700" pushentity="true" />
<spawnprojectile name="Projectile_Disengage" source="source_entity" target="stack_position" bind="source_entity" bindturn="true" bindstate="State_Disengage" unbindondeath="true" />
</onimpact>
I've tried using "facetarget" but I don't know if that works outside of a teleport command. In any case, it hasn't worked thus far.

Edit: Figured it out on my own. Looked through the library guide again and bindturn (which should have been obvious) was my issue.

Nytemair
04-28-2011, 10:49 AM
What an awesome spell!

Disjoints too, S2 implement NAO! :D

Glad you figured it out :}