|
Post by magique on May 22, 2019 23:17:37 GMT
What is the best way to access an AI's health in script to get and set the value?
|
|
|
Post by magique on May 24, 2019 15:23:33 GMT
I figured this out.
vControlAIMelee aiUnit = GetComponent<vControlAIMelee>();
vIFSMBehaviourController fsm = aiUnit.GetComponent<vIFSMBehaviourController>();
fsm.aiController.ChangeHealth(_maxtHitPoints);
|
|