Ability order and access

Shadowing

Member
I'm doing this to add my abilities which I got from the Character creation script

Code:
m_Run = AbilityBuilder.AddAbility(m_UltimateCharacterLocomotion, typeof(Run)) as Run;

I created a ability called Run and a ability called Sprint

If I create Run before Sprint in the same frame I can't access Sprint using

Code:
        public override void Awake(){
            base.Awake();
      
            m_sprint = m_CharacterLocomotion.GetAbility<Sprint>();
        }

I can't simply create Sprint first because I'm accessing Run from inside Sprint lol

So I guess Awake override is being called as soon as its added instead of on the next frame?
 
Ahh ok. i thought I remember Start wasn't a option in the old controller ability system? Or would never let me add it.
Anyways I found a better way around my issue.

Using ShouldStopActiveAbility and ShouldBlockAbilityStart avoids me needing to assign those ability variables anyways.
So just use the api that came with UCC lol
 
Top