Jump to content

Mod Help - PlayIdle


JonoPhoenix

Recommended Posts

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

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 by LoginToDownload
Link to comment
Share on other sites

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

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 by JonoPhoenix
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...