nopopup Posted April 2, 2013 Share Posted April 2, 2013 (edited) I'm trying to finish my mod but I need a function or any other way to force my character to sheath their weapon. The reason is that my new animation does not work when my character is in "ready weapon" state. Or in other words, "weapon out" state. I used the function debug.SendAnimationEvent( , ) to play my new animation but it only works when my character is in "weapon sheath" state.Or any way to ignore ready weapon state and use debug.SendAnimationEvent???? Or any way to force the game to press "R" automatically which is ready/sheath weapon key ???I need help! Thank you so much in advance. Edited April 2, 2013 by nopopup Link to comment Share on other sites More sharing options...
nopopup Posted April 3, 2013 Author Share Posted April 3, 2013 Any help?I used idle property for my animation. Maybe cuz it's "idle" the new animation does not play in "weapon out state". is there other property for animation???? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted April 3, 2013 Share Posted April 3, 2013 Why not simply check the state that the player is in? http://www.creationkit.com/IsWeaponDrawn_-_Actor Perform a negative check for the player's weapon or spell to be drawn/ready and only then allow the animation to take place. While at it, might want to ensure that the player isn't sneaking either. Link to comment Share on other sites More sharing options...
nopopup Posted April 4, 2013 Author Share Posted April 4, 2013 (edited) sorry, double post, see below plz Edited April 4, 2013 by nopopup Link to comment Share on other sites More sharing options...
nopopup Posted April 4, 2013 Author Share Posted April 4, 2013 (edited) Why not simply check the state that the player is in? http://www.creationkit.com/IsWeaponDrawn_-_Actor Perform a negative check for the player's weapon or spell to be drawn/ready and only then allow the animation to take place. While at it, might want to ensure that the player isn't sneaking either. i just tested isweapondrawn function and now my new animation works when my character is in "weapon out" state !!!! BUT after my new animation ends, my character does the idle animation of "weapon sheath" state and i can't click left or right and jump. But my new animation still works when i execute it(which is pressing F11. I used iskeypressed function to trigger my new animation). And weirdly, if i press 'R' key which is normally draw/sheath like 4 times, my character goes back to "weapon out" state which is what i want.i don't know what is going on. Maybe I should end the new animation by force by a function or something? so that my character goes back into "weapon out" state immediately after my new animation ends??? i don't know... Thank you so much IsharaMeradin. Edited April 4, 2013 by nopopup Link to comment Share on other sites More sharing options...
IsharaMeradin Posted April 4, 2013 Share Posted April 4, 2013 Posting the script might help some to see what is going on. I'm not that familiar with animations themselves but may be able to see if there is anything amiss in the script... Link to comment Share on other sites More sharing options...
Recommended Posts