Hello,
I tried to add bows or swords to NPC but they don't attack and into the console I get this warning:
System.NullReferenceException: Object reference not set to an instance of an object
at BaseProjectile.ServerUse (System.Single damageModifier, UnityEngine.Transform originOverride) [0x000e3] in :0
at NPCPlayer.ShotTest (System.Single targetDist) [0x000f7] in :0
at ScientistNPC.ShotTest (System.Single targetDist) [0x00000] in :0
at HumanNPC.TickAttack (System.Single delta, BaseCombatEntity target, System.Boolean targetIsLOS) [0x00106] in :0
at HumanNPC.AttackTick (System.Single delta, BaseEntity target, System.Boolean targetIsLOS) [0x00007] in :0
at AttackTickAIEvent.Execute (AIMemory memory, AIBrainSenses senses, StateStatus stateStatus) [0x00042] in :0
at AIEvents.Tick (System.Single deltaTime, StateStatus stateStatus) [0x000c3] in :0
at BaseAIBrain.Think (System.Single delta) [0x00085] in :0
at BaseAIBrain.DoThink () [0x0000d] in :0
at HumanNPC.ServerThink (System.Single delta) [0x0001a] in :0
at NPCPlayer.ServerThink_Internal () [0x0000d] in :0
at HumanNPC.TryThink () [0x00000] in :0
at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in :0
This is from hunting bow NPC.
is there a way to fix it?
Thanks