SPAM Framework Documentation

Raycast ability

An ability that's invoked by shooting a ray from a given position in a given direction to check for a potential target.

This is useful for abilities like a shot in First-Person games, as you don't need to continually raycast every frame but instead only when you want to fire your ability or weapon. The ability will not continously fire rays as it will return early if the ability is on cooldown.

See also: General settings, Ability component settings

Additional settings

Raycast length
The max-length of the ray that's cast as part of invoking the ability.

Raycast Layers
The layers that the ability will check if it hits something on.

Requires ability target
Check this is the ability requires a valid IAbilityTarget to be cast, i.e. the ray must hit an object that has an IAbilityTarget component.

Backlinks: