Jump to content

I don't understand the MonsterAI.lua and AnimationManager.lua.


Deadlyforce
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...