Everknight
New member
So, I have been slowly learning how to use UCC, and I have a pretty good grasp of most of it, But I have a test AI Character that runs around and tries to shoot the player, But when he is within range he is not able to fire the weapon.
When he is within a certain distance of the player Playmaker uses a script that fires functions as needed. The one to fire the weapon is
Looking at the documentation this is pretty similar to the as the written example, so I didn't expect much trouble figuring it out.
I have confirmed that the weapon is indeed equipped, it is not waiting for any animation events, and the state is not being updated in the animator, I'm not sure what else to look for at the moment.
any help would be appreciated
Thanks!
When he is within a certain distance of the player Playmaker uses a script that fires functions as needed. The one to fire the weapon is
Code:
public void Awake()
{
m_Character = this.gameObject;
m_CharacterLocomotion = GetComponent<UltimateCharacterLocomotion>();
}
public void UseWeapon()
{
ItemAbility useAbility = m_CharacterLocomotion.GetAbility<Use>();
if (useAbility != null)
{
useAbility.StartAbility();
}
}
Looking at the documentation this is pretty similar to the as the written example, so I didn't expect much trouble figuring it out.
I have confirmed that the weapon is indeed equipped, it is not waiting for any animation events, and the state is not being updated in the animator, I'm not sure what else to look for at the moment.
any help would be appreciated
Thanks!