defineAbility
defineAbility(
name,settings):AbilityHandle
Defines an ability once, at module scope, and returns its handle, a
value that carries its name and its settings and touches no world. A
world installs it from the plugin’s list, abilities({ kinds: [frostNova] }), or from registerAbility in a plugin’s setup, and
a character is given it with the spawn’s abilities, grantAbilities
or a worn item. The name is what a grant, a cast and an item name it
by, on the wire and in a save. A cost that lists one resource twice,
or health, which a cast cannot hold back, is refused here; the cast
time resolves as the world installs it. As Unreal’s ability system
authors an ability apart from the component it is granted on.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
settings |
AbilitySettings |