So, after doing a lot of work to get to the point where my characters attacks land and do damage and getting a lot of help in this thread ( http://forum.orkframework.com/discussion/4629/damage-dealer-not-working#latest ), which worked very nicely. I'm having a similar problem where my enemy combatants attacks don't seem to be doing damage. I've got basically everything set up the same way for them as for the players, but they've got an AI. All the AI does is fire off the basic attack repeatedly, but it doesn't seem to do anything when my player is in a place where they should get hurt by it.

I'm not sure where to check to resolve this, but any help would be wonderful!
  • edited May 2018
    @Whatexists does your player has damage zone ork component on them ? select the player gameobject, then windows, ork scene wizard then damage one. What is the faction of the supposed Ai ? when spawning the Ai make sure the faction is set to enemy and that of the player is set to player.
    Post edited by henkesky1 on
  • Make sure the player has a damage zone and the enemy's attack uses a damage dealer (e.g. through an equipped and viewed weapon or directly on the enemy's combatant, or spawned by the battle event of the attack).
    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!
  • alright. I've double checked those things. Both the enemy combatant and the player combatant have damage zones on them. Their weapons have damage dealers (it's the same prefab for the weapon). And they are in different factions.
  • Are both using the same ability for their attack? If not, make sure the enemy ability's battle events activate the damage dealer.
    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!
  • They are using the same ability for their attack. They're also using the same prefabs. The enemy combatant is mostly just a copy of the player combatant with a few things like status changed around. Is that a potential source of the problem?
  • Hm, shouldn't really be an issue ... can you send me a small Unity test project where this happens to contact@orkframework.com?
    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!
  • Sure. It'll take me a little bit to put it together. If I don't send it today then I'll send it on monday.
  • That took longer than expected. Had problems with my server. But I've sent it to you now.
  • I'll try to look into it in the next days (I've been out of office).
    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!
  • Looked into it - your weapon prefab's damage dealer doesn't have the weapon tag you defined in the attack abilities to activate it. I'm actually surprised the player is hitting the enemy.
    Adding the tag to the weapon will solve your issue.
    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!
  • Alright! That fixed it! I'm not a little concerned about the fact that the player was hitting the enemy, as you pointed out. Hopefully that won't come back to haunt me. =p
Sign In or Register to comment.