P0larius Posted March 31, 2016 Share Posted March 31, 2016 (edited) Hey guys,I was planning to recreate the "Bats" Power in order to use it in human form. I briefly looked through the magic effect and its attached scripts and have been successful in copying the effect and getting the attached script to work. I quickly realised that things probably won't be as easy though, as the bat power relies on an animation that I presume is only available while your race is changed to the Vampire Lord race (BatSprintStart). Also it seems that when I use the Actor.PlayIdle() Function on the Player and passing the Property of BatSprintStart to it (that's how the vanilla Bat-Script does it), the animation won't play and PlayIdle() will not return true.Am I completely wrong in the way I imagine things to work? :DHow would you guys solve the problem?When I get back home I will try to post the code of my non-functioning script.Thanks a lot Edited March 31, 2016 by shemalerevenge Link to comment Share on other sites More sharing options...
P0larius Posted March 31, 2016 Author Share Posted March 31, 2016 A small addendum: I also thought about using the Whirlwind Sprint animation instead, but it did not work properly. Is it even possible to play such animations using the Actor.PlayIdle() function? Link to comment Share on other sites More sharing options...
P0larius Posted March 31, 2016 Author Share Posted March 31, 2016 (edited) Okay, I finally got it to work. :smile: In case anyone is interested in the solution: Playing the BatSprintStart Animation naturally did not work as the PC's race is not VampireLord. I got it to work using the "VoiceWhirlwindSprintLong" animation, although I had to copy it in the CK and remove the conditions attached to it. I used the following script for the magic effect (edited version of the vanilla bat script): Scriptname VelyaBatsEffectScript extends ActiveMagicEffect Idle Property VelyaVoiceStart Auto ; references "VoiceStart" animation Idle Property VelyaVoiceWhirlwindSprintLong Auto ; references "VoiceWhirlwindSprintLong" (copied) animation spell Property VelyaVampireBatsPower Auto actor CasterActor = None bool bBatsAreGoCheck = False Event OnEffectStart(Actor akTarget, Actor akCaster) CasterActor = akCaster CasterActor.PlayIdle(VelyaVoiceStart) Utility.Wait(0.1) if CasterActor.PlayIdle(VelyaVoiceWhirlwindSprintLong) bBatsAreGoCheck = true endif EndEvent Edited March 31, 2016 by shemalerevenge Link to comment Share on other sites More sharing options...
Recommended Posts