Question about Entity Groups and Type derivationSolved

Hello,

The default configuration defines following group:

    {
      "name": "npcs",
      "members": "ch47scientists.entity, BradleyAPC, CustomScientistNpc, ScarecrowNPC, HumanNPC, NPCPlayer, ScientistNPC, TunnelDweller, SimpleShark, UnderwaterDweller, ZombieNPC",
      "exclusions": ""
    },

I wonder if it could be simplified as follow since CustomScientistNpc, ScarecrowNPC, HumanNPC, ScientistNPC, TunnelDweller, UnderwaterDweller are derived from NPCPlayer:

    {
      "name": "npcs",
      "members": "ch47scientists.entity, BradleyAPC, NPCPlayer, SimpleShark, ZombieNPC",
      "exclusions": ""
    },

hi, not likely. for example, types (ScientistNPC) can inherit multiple other types (HumanNPC -> NPCPlayer -> BasePlayer). the type that does damage (ScientistNPC) is what is evaluated. this is how the game does it with HitInfo.Initiator and HitInfo.HitEntity.

nivex

hi, not likely. for example, types (ScientistNPC) can inherit multiple other types (HumanNPC -> NPCPlayer -> BasePlayer). the type that does damage (ScientistNPC) is what is evaluated. this is how the game does it. where the attacker, or HitInfo.Initiator, is ScientistNPC

So... bad luck... It would have been simpler😁
Thanks for your answer @nivex. 🙏

no problem

Locked automatically