Which "faction" destroyed my building ?
Posted: Tue Nov 05, 2019 6:02 pm
I apology if the answer has already been discussed or given somewhere else, I haven't found a satisfying answer.
For Comprhensive biters I try to get which entity/force destroyed my building.
I am working on on_entity_died event level.
What I know is to get the responsible entity (said alien) in case of a melee destruction.
However when the responsible entity is a projectile, I am interested in getting the projectile thrower/owner/force.
I don't know how to do that. What I have found on forums is that the projectile has no force because it is neutral.
What I would get is the responsible entity (said alien) in case of non-melee destruction.
Any idea ?
For Comprhensive biters I try to get which entity/force destroyed my building.
I am working on on_entity_died event level.
What I know is to get the responsible entity (said alien) in case of a melee destruction.
However when the responsible entity is a projectile, I am interested in getting the projectile thrower/owner/force.
I don't know how to do that. What I have found on forums is that the projectile has no force because it is neutral.
What I would get is the responsible entity (said alien) in case of non-melee destruction.
Any idea ?
