Hey Magique
Contribute to Black-Horizon-Studios/Emerald-AI development by creating an account on GitHub.
github.com
On here step 3 is confusing to me, I can't seem to set it up correctly to get hit effects based on the location hit.
If you're using the OpsiveBridge script without changes then it should work automatically. The following code in that script is as follows:
#if EMERALD_LBD
// !!!Thanks to Mattis for providing this code for location based damage!!!
if (hitCollider.GetComponent<LocationBasedDamageArea>())
{
hitCollider.GetComponent<LocationBasedDamageArea>().DamageArea((int)amount, EmeraldAISystem.TargetType.Player, attacker.transform);
}
else
#endif
So, as long as the code at the top . . .
#define EMERALD_LBD
Is uncommented, then it should work.