Accessing the Combat Text System Through Code
Accessing the Combat Text System Through Code
The Combat Text System is created on Start during runtime. It can be accessed to allow custom character controllers to display their damage dealt to Emerald AI agents.
Users must include the Emerald AI namespace at the top of their script in order for the CombatTextSystem class to be visible.
You can then call the CreateCombatText function which allows custom player damage with the following code:
This should go in the portion of your character controller that damages Emerald AI. It includes special parameters for added functionality.