JonoPhoenix Posted April 5, 2012 Share Posted April 5, 2012 I'm trying to force the player to go into the master destruction spell cast animation while he/she absorbs dragon souls, like in the trailer. However, I am 100% new to scripting. So far I have this inserted in the killdragon script: ; dovakihn animation.Game.GetPlayer().PlayIdle(AttackLeftRitualSpell) And at the end: Idle property AttackLeftRitualSpell auto It compiles fine, but nothing happens. If I put "player.playidle attackleftritualspell" it says something along the lines of there being no other alternatives. Also, when I enter that command in the console nothing happens either. Any help would be much appreciated! :blush: Link to comment Share on other sites More sharing options...
LoginToDownload Posted April 5, 2012 Share Posted April 5, 2012 (edited) Note: The following is ill-researched guesswork. -Have you filled the property properly? Properties don't automatically point to whatever shares their name. To fill your property, right-click on your script and click "Edit Properties". From there you can click "Auto-Fill" or select something for it point to manually. Empty properties have tripped me up more times than I care to say. -Conventionally, people declare properties at the top of the script rather than the bottom. It probably doesn't matter, but I guess there's a chance? -If none of that works, have you tried using SendAnimationEvent instead? Edited April 5, 2012 by LoginToDownload Link to comment Share on other sites More sharing options...
JonoPhoenix Posted April 5, 2012 Author Share Posted April 5, 2012 Thanks for the suggestion. No, I had no idea idea that properties had to be filled out. Will give it a try! On 4/5/2012 at 3:33 AM, LoginToDownload said: Note: The following is ill-researched guesswork. -Have you filled the property properly? Properties don't automatically point to whatever shares their name. To fill your property, right-click on your script and click "Edit Properties". From there you can click "Auto-Fill" or select something for it point to manually. Empty properties have tripped me up more times than I care to say. -Conventionally, people declare properties at the top of the script rather than the bottom. It probably doesn't matter, but I guess there's a chance? -If none of that works, have you tried using SendAnimationEvent instead? Link to comment Share on other sites More sharing options...
JonoPhoenix Posted April 5, 2012 Author Share Posted April 5, 2012 (edited) Hrm... still not able to get it to animate. Do I need to take the player's control away? Right now I've inserted it midway through the MQKillDragon script.... maybe it has to be a separate script? On 4/5/2012 at 7:19 PM, JonoPhoenix said: Thanks for the suggestion. No, I had no idea idea that properties had to be filled out. Will give it a try! On 4/5/2012 at 3:33 AM, LoginToDownload said: Note: The following is ill-researched guesswork. -Have you filled the property properly? Properties don't automatically point to whatever shares their name. To fill your property, right-click on your script and click "Edit Properties". From there you can click "Auto-Fill" or select something for it point to manually. Empty properties have tripped me up more times than I care to say. -Conventionally, people declare properties at the top of the script rather than the bottom. It probably doesn't matter, but I guess there's a chance? -If none of that works, have you tried using SendAnimationEvent instead? Edited April 5, 2012 by JonoPhoenix Link to comment Share on other sites More sharing options...
LoginToDownload Posted April 7, 2012 Share Posted April 7, 2012 At a glance, putting it in MQKillDragon should work. Sorry, I've never actually used animations before. :( Link to comment Share on other sites More sharing options...
Recommended Posts