SPAM Framework Documentation

Ability pre-conditions

Pre-conditions are condition-rules thats needs to be satisfied for an ability's effects to apply. The rules are checked before the ability is cast or when a projectile hits something. If pre-conditions aren't satisfied then no effects (including conditional effects) will be applied.
If you wish to check if pre-conditions are satisfied eariler than that (f.eg. you don't want the caster to be able to cast a certain projectile if pre-conditions aren't met) you'll have to manually call Ability.CanCastAbility(Vector3 target) from another script.

To add pre-conditions to an ability, click "Add pre-condition".

The settings are, from left to right:

Constraint
Should the target have or lack the given condition?

Condition
Which conditions should be checked for?

On caster
Should the caster be checked for the given condition?

Backlinks: