Trying to Access Swim Ability from another ability

nathanj

Active member
Hi,

I'm making a custom ability that uses a raycast to detect the water height and then adjuct the water height of the swim ability, however, when I call
Code:
GetComponent<UltimateCharacterLocomotion>().GetAbility<Swim>()

I get this error

Code:
the type or namespace name Swim could not be found (are you missing a using directive or an assembly reference?)

Do I need to mess with the Assembly Definition to get the Addon Abilities to be accessable?

Thanks,
Nathan
 
Top