Page 1 of 1

Which "faction" destroyed my building ?

Posted: Tue Nov 05, 2019 6:02 pm
by TelemakFactorio
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 ? :oops:

Re: Which "faction" destroyed my building ?

Posted: Tue Nov 05, 2019 6:56 pm
by Klonan
TelemakFactorio wrote: Tue Nov 05, 2019 6:02 pm 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.
Projectile has a force, where did you read otherwise?

Re: Which "faction" destroyed my building ?

Posted: Sat Nov 09, 2019 5:38 pm
by TelemakFactorio
Klonan wrote: Tue Nov 05, 2019 6:56 pm Projectile has a force, where did you read otherwise?
Aaa I misread what I have read is that explosions have no force.

Still I am unable to get the projectile thrower from on entity died / damaged.
Simple noob question.