Which "faction" destroyed my building ?

Place to get help with not working mods / modding interface.
User avatar
TelemakFactorio
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Fri Oct 14, 2016 4:30 pm
Contact:

Which "faction" destroyed my building ?

Post 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:
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5282
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Which "faction" destroyed my building ?

Post 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?
User avatar
TelemakFactorio
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Fri Oct 14, 2016 4:30 pm
Contact:

Re: Which "faction" destroyed my building ?

Post 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.
Post Reply

Return to “Modding help”