HamsterHam
New member
So I followed the DeathMatch AI Kit tutorial from Youtube, scoured the documentation and burned my day off of work trying to solve this issue.
After setting up everything exactly as it is on the video with the exception of the 3D models used for the assault rifle, and me adding bullets on the inventory script, I get the following error:
NullReferenceException: Object reference not set to an instance of an object
Opsive.DeathmatchAIKit.AI.Actions.DetermineWeapon.OnUpdate () (at Assets/Opsive/DeathmatchAIKit/Scripts/AI/Actions/Attack/DetermineWeapon.cs:108)
It happens as soon as the AI agent detects me.
It does not happen if I disable the weapon on the AI agent, at which point it just runs at me since I havent set up any other type of attack
Does anyone know why?
After setting up everything exactly as it is on the video with the exception of the 3D models used for the assault rifle, and me adding bullets on the inventory script, I get the following error:
NullReferenceException: Object reference not set to an instance of an object
Opsive.DeathmatchAIKit.AI.Actions.DetermineWeapon.OnUpdate () (at Assets/Opsive/DeathmatchAIKit/Scripts/AI/Actions/Attack/DetermineWeapon.cs:108)
It happens as soon as the AI agent detects me.
It does not happen if I disable the weapon on the AI agent, at which point it just runs at me since I havent set up any other type of attack
Does anyone know why?
Last edited: