Deadlyforce Posted February 6, 2016 Share Posted February 6, 2016 I'm imported a character into the game and want to animate it. It has animation but don't see where to call the animation in the script when the character sees me. I have looked through the monsterai and animationmanager scripts. I see where it is calling roam, attack, idle and dying but don't see where these (roam, attack, idle, and dying) are at. Any help at all to point me in the right direction would be much appreciated. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
Brutile Posted February 6, 2016 Share Posted February 6, 2016 If you open the monster model (not the prefab) and go into the animation tab, you will see these animations listed. Quote Link to comment Share on other sites More sharing options...
macklebee Posted February 6, 2016 Share Posted February 6, 2016 Review the Models and Animation tutorial - section 7 Animation. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Deadlyforce Posted February 6, 2016 Author Share Posted February 6, 2016 I don't understand how it knows where the animation is. It must also be case sensitive. Quote Link to comment Share on other sites More sharing options...
Deadlyforce Posted February 6, 2016 Author Share Posted February 6, 2016 I kind of understand it but not fully. After you set frame # to frame # then name it and save. Where is it saved? How does it know to go where it is saved? Sorry to be a pain in the but. Quote Link to comment Share on other sites More sharing options...
macklebee Posted February 6, 2016 Share Posted February 6, 2016 Its saved within the model (MDL) file itself, just like your exported model has the animations embedded in the FBX. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Deadlyforce Posted February 6, 2016 Author Share Posted February 6, 2016 OK I'm starting to understand. One thing that is odd to me is that the code is calling chase, but the animation is called Run. I changed the animation to chase at first and didn't work. Changed it to Run and it worked. Obviously I'm not a programmer but I do know that in programming you keep what you are calling the same. Thanks guys very much for the help. Quote Link to comment Share on other sites More sharing options...
Slastraf Posted February 6, 2016 Share Posted February 6, 2016 you cant have a chase animation but you can have a run animation, what would chase even look like Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.