Starting a New Ability

Diggidy

Member
I created a new Ability called StopMovement and added it to my UCC abilities. The ability is enabled and start type is set to manual.
I am trying to start it in code but UCCLocomotion.TryStartAbility(stopMovement) returns false and is not activating.

The class code is just the DetectObjectAbilityBase wrapper

public class StopMovement : DetectObjectAbilityBase
{

}
 
I recommend inserting a breakpoint within CanStartAbility and determining why it's returning false. One of the detection parameters are likely causing it not to start when you think that it should.
 
After re-watching your crawl ability video, I changed StopMovement to Ability and that fixed it.

public class StopMovement : Ability
{

}
 
Top