What's the proper way to end a function through a loop?

Post » Tue Jun 19, 2012 10:29 pm

For example:

Function HardLanding()	    EndFunction

and then later used this way:

while Caster.HasSpell(RockyFlight)    HardLanding()endwhile

The real function has lots of translates and I want them to kill/end. What's the proper way to end 'HardLaning()' after it has been added?

I can make it kind of end if I remove the spell from the player while it's running but the translate then bugs out and forcesthe player to keep moving.

I tried adding a Caster.StopTranslation in the OnEffectFinish but if you're holding forward it doesn't end the translation. The translates are based
User avatar
Evaa
 
Posts: 3502
Joined: Mon Dec 18, 2006 9:11 am

Post » Wed Jun 20, 2012 2:45 pm

Well you could disable player controls, wait half a second, THEN stop translation, wait half a second, then re-enable player controls?
User avatar
Catherine Harte
 
Posts: 3379
Joined: Sat Aug 26, 2006 12:58 pm

Post » Wed Jun 20, 2012 6:23 am

I thought I tried that. I'll try that again real quick.
User avatar
Avril Churchill
 
Posts: 3455
Joined: Wed Aug 09, 2006 10:00 am

Post » Wed Jun 20, 2012 8:51 am

Dude, you're the man. Vampire high-five bro.

EDIT: The trick was the Wait. I never used it before.
User avatar
Donald Richards
 
Posts: 3378
Joined: Sat Jun 30, 2007 3:59 am


Return to V - Skyrim