Hook_APrimalStructure_TakeDamage: _this->TargetingTeamField() returns the ID of the structure owner.
Hook_APrimalStructure_Die: _this->TargetingTeamField() returns the ID of the killer.
What could be the reason for that?
Hey. How can I get the tribe ID of the destroyed structure?
This code returns the same tribe ID for the killer and the structure owner.
bool Hook_APrimalStructure_Die(APrimalStructure* _this, float KillingDamage, FDamageEvent* DamageEvent, AController* Killer, AActor* DamageCauser)
{
int...