Damaging the LBD Component
Important: It is expected that you have C# coding knowledge before proceeding.
Damaging the Location Based Damage Component
Emerald AI agents can automatically detect if another AI target has a LBD component. When this happens, the hit AI will be damaged according to the hit collider, its multiplier, and the damage received.
If you want your player to damage an LBD component, an extra step is required as damaging an LBD component is different than damaging the AI directly. To do this, you will need a reference to the AI collider hit, a reference to the LocationBasedDamageArea component, and a call to the DamageArea function within the LocationBasedDamageArea component. The DamageArea parameters are the same as the EmeraldAISystem's Damage function to make the process easier.
Note: You will need to included using EmeraldAI; at the top of your script in order to have the LocationBasedDamageArea class accessible.
Last updated