about ability IgnorePriority

zsj

New member
i am reading the script in UltimateCharacterLocomotion.TryStartAbility. i cant understand why the ability can not be started in this situation:
ability.IsConcurrent = false
activeAbility.IsConcurrent = true
ability.IgnorePriority = activeAbility.IgnorePriority = true
activeAbility.ShouldBlockAbilityStart(ability) = true

if (m_ActiveAbilities.IsConcurrent)
{
if (((!ignoreLocalPriority && m_ActiveAbilities.Index < ability.Index) || ignoreLocalPriority) && m_ActiveAbilities.ShouldBlockAbilityStart(ability)) {
return false;
}


maybe remove the "|| ignoreLocalPriority" do not change the result.
sorry for my poor english
 
Which abilities are being used? Do the abilities definitely return true for IgnorePriority?
 
Ignore priority will specify if the priority index should be considered or not. If it is not considered then an ability with a lower index can start even when there is a higher priority ability active.
 
Ignore priority will specify if the priority index should be considered or not. If it is not considered then an ability with a lower index can start even when there is a higher priority ability active.
thank you!
 
Top