ravl
New vMember
Posts: 1
|
Post by ravl on Jun 16, 2022 18:18:36 GMT
Hi there, I just bought FSM AI template and I am trying to integrate with my custom character controller. so I cannot use the v weapon manager I was able to make the Invector AI damage my character but I dont know how to exactly send damage to him. What class do I need to access? I tried: vControlAI thisAI = gameObject.GetComponent<vControlAI>();
thisAI.TakeDamage(new Invector.vDamage(100)); but it's throing me some errors
|
|
|
Post by Invector on Jun 20, 2022 12:46:53 GMT
Take a look at the vObjectDamage component, you can attach it on any object and choose a way of applying damage via trigger, collision or particle. With this script you will have several examples on how to apply damage and you can create own own based on that
|
|