|
Post by deidrereay on Jul 6, 2020 18:29:46 GMT
Using Emerald AI for our animals and have everything going great !! Worked on Melee damage no problem and the animals do damage to the Invector Players as well. However once again the Vbow.. Cant seem to get it to do damage at all.. Looked at ragdoll and the vreactions like when invector characters do bow damage. nothing.. Any ideas where to start and or where we could double check a mistake ????
Thanks as always
|
|
|
Post by Invector on Jul 6, 2020 19:08:10 GMT
Use the vHealthController component. Or create your script using interface vIDamageReceiver
|
|
|
Post by hobbycoder on Jul 6, 2020 22:06:11 GMT
github.com/Black-Horizon-Studios/Emerald-AI/wiki/Invector-Integration-Tutorialif you are using the projectile arrow, here's a script from the integration, vProjectileControl Code Snippet This code should be added right below the first instance of onCastCollider.Invoke(hitInfo); and damage.damageValue = maxDamage; //Emerald AI Damage if (hitInfo.collider.gameObject.GetComponent<EmeraldAI.EmeraldAISystem>() != null) { hitInfo.collider.gameObject.GetComponent<EmeraldAI.EmeraldAISystem>().Damage(damage.damageValue, EmeraldAI.EmeraldAISystem.TargetType.Player); }
|
|
|
Post by deidrereay on Jul 6, 2020 22:29:23 GMT
Question for you Invector guys. What is it the actual Arrow Projectile is hitting??? A box collider? the mesh?? that might help me out a bit more
|
|
|
Post by hobbycoder on Jul 6, 2020 22:34:51 GMT
a collider with rigidbody..and check also the layer of the object being hit
|
|
|
Post by deidrereay on Jul 6, 2020 23:00:07 GMT
Layers are set up as enemy and thats working out alright Just seem to have some issues on some of these models when they have LODS .. Its weird but that seems the problem. Think i will try redoing the two that have issues and use mantis like i usually do. Let you know if that fixes it
|
|