Recently Changed PagesEmerald Animal AI WikiaMain PageIntroductionTutorialsCode ReferencesExample ScriptsSolutions to Possible IssuesBlog postsMafuta1967/Emerald Demo Scenes don't work with Unity 5.6.0f1Recent blog posts
Emerald Animal AI Wikia
All Contributors
No replies yet.

Prey won't flee, getting an error message..

Hi I have just started using this A.I. package. I really like the simplicity of it and how well everything is explained through all of the notes but I'm still not getting it to work perfectly. Right now I cant get a prey character to flee. I have a predator that works like its supposed too & it will attack the prey character but the prey character won't flee & I get this error message....

NullReferenceException: GetRef Emerald_Animal_AI.AttackWhileStationary () (at Assets/Emerald AI/Scripts/Emerald AI/Emerald_Animal_AI.cs:2453) Emerald_Animal_AI.MainSystem () (at Assets/Emerald AI/Scripts/Emerald AI/Emerald_Animal_AI.cs:1611) Emerald_Animal_AI.Update () (at Assets/Emerald AI/Scripts/Emerald AI/Emerald_Animal_AI.cs:1758)

It seems the prey character tries to turn & defend itself instead of fleeing just before this error happens.

0 0
  • Upvote
  • Reply
No replies yet. Be the first!
Write a reply...