TK_AbilityComponent - golden-coconut-studio/TikiAdventuresWiki GitHub Wiki
-
This components allows to use abilites.
-
How to use it:
0.- Add the component to a Tiki. 1.- Assign an ability (look for "_BP" terminations in blueprint) to the variable "Ability" of type ClassObjectReference. 2.- Call from an InputEvent the function "UseAbility" passing as an argument the variable "Ability" for the "NewAbility" parameter. 3.- Modify the booleans of this functions according to your needs.
-
Parameters
- bool bCanCastAbilityOnAir: if true, the ability can be used while in mid-air. - bool bCanCastAbilityWhileOnTotem: if true, the ability can be used while in Totem mode. - bool bCanCastAbilityWhileGrabbingObject: if true, the ability can be use while grabbing an object. - float BoostCooldown: amount of time the base cooldown has to be reduced in case we have collected or have been applied on us any sort of buff.
-
Conditions to use an ability:
- Not being falling (!CharacterMovement->isFalling) or being able to use the ability on mid-air. - Not being in Totem mode or being able to use the ability in Totem mode. - Not being holding any Enemy/GrabbableObject or being able to use the ability while in this state. - The ability must not be on cooldown. - Having enough mana (WIP).