What it is: a unified runtime attack caster for melee, ranged, and area attacks driven by RpgAttackDefinition.
Navigation: ← RPG
| Mode | Runtime behavior |
|---|---|
Direct |
Raycast / SphereCast / CircleCast forward |
Area |
OverlapSphere / OverlapCircle at the impact point |
Projectile |
Spawns RpgProjectile with the same definition |
UsePrimaryAttack()UsePrimaryPreset()TryUseAttack(...)TryUsePreset(...)GetRemainingCooldown(...)
- Enabled by default.
- Primary attack uses left mouse button by default.
- Binding can use either
MouseButtonorKeyCode. - Disable
Enable Built-in Inputfor NPC and AI actors.
Use RpgAttackPreset together with RpgTargetSelector when the controller should resolve targets automatically instead of relying only on forward casts.