I'm trying to create an ability whose target can only be an enemy. When the ability is used it spawns a damage dealer prefab that should damage everyone inside it, not just the enemy and not just other enemies.

Is this possible? And more generally, is it possible to separate the combatants the ability targets from the combatants it affects?
  • I don't think this is currently possible, targeted and affected enemies are the same - you can affect more combatants around the target (using the Affect Range settings), but they're of the same target type/range as the target selection.

    However, you could just use a game event on the spawned prefab (e.g. Trigger Enter start type event interaction) to do what you need :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Yeah I think that will work for my purposes :)
Sign In or Register to comment.