Ability Enable/Disable

I have a character script running at startup. I'm trying to add some randomness to some of the characters so that some can climb, some can't. Is there a way to enable/disable the ability from a cs script? I can trigger the usage but can't see to figure out a way to enable the ability for the character.
 
Yes, you can either use the state system to enable or disable the ability or you can do so by script by getting a reference to it and then calling enabled. You can get a reference with UltimateCharacterLocomotion.GetAbility.
 
For anyone hitting this issue. Turned out to be pretty easy. I was fetching the ability no problem. I just wasn't able to set it.
But as Justin pointed out variable.Enabled = true; will set it once you fetch it. I think I was trying to use active or something and couldn't find a reference for it.
 
Back
Top