Trying to set up AI char

RobotGames

Member
I am trying to create an AI using the UCC. I have my own state Machine AI and it worked great but wanted to use the UCC. From what I understand by looking at your demo Melee Agent in order to use a weapon I need to do something like

var m_UseAbility = controller.characterLocomotion.GetAbility<Use>();
controller.characterLocomotion.TryStartAbility(m_UseAbility);


This is the code I have to fire my attack, I have tried making a "fist" and a gun. Both fail. I ran through the debugger and the ability fails on the first line in UltimateCharacterLocomotion.cs line 1181. Its never ready. Am I missing something? How do I make the weapon ready to use? I kind of liked or at least was used to the old system where you named the animation states with a matching name for the weapon etc. The new one is going to take some getting used to.

On a side note it would be nice if the Documentation was searchable. Maybe you have a tutorial or example for how to set up an AI char using the system?
 
Top