Page 1 of 1
on_entity_died event should include dropped loot data somewhere in there
Posted: Fri Oct 05, 2018 8:52 pm
by sawbladex
In the Mod API, on_entity_died doesn't include a value for the loot dropped by the dead entity.
I think it should, because dropping loot is kinda an interesting thing.
Granted, it isn't quite as interesting with the base game now that alien artifact/eggs don't drop as requirements for getting to space, but the functionality is interesting.
Re: on_entity_died event should include dropped loot data somewhere in there
Posted: Sat Oct 06, 2018 8:29 am
by Optera
+1
Would be good to also include inventory drops. Currently that's only something player avatars do, but it would be fun to see chests or warehouses spilling their contents when destroyed only to have that instantly marked for deconstruction and bots swarming in to clean up the mess.
![Laughing :lol:](./images/smilies/icon_lol.gif)
Re: on_entity_died event should include dropped loot data somewhere in there
Posted: Sat Oct 06, 2018 8:51 am
by eradicator
Optera wrote: Sat Oct 06, 2018 8:29 am
but it would be fun to see chests or warehouses spilling their contents when destroyed only to have that instantly marked for deconstruction and bots swarming in to clean up the mess. :lol:
You have an oddly sadistic idea of "fun".
+1 for the general idea though.
Re: on_entity_died event should include dropped loot data somewhere in there
Posted: Sat Oct 06, 2018 9:01 am
by Optera
eradicator wrote: Sat Oct 06, 2018 8:51 am
You have an oddly sadistic idea of "fun".
+1 for the general idea though.
Didn't forcing players to learn combinators and binary with LTN give that away already?
![Twisted Evil :twisted:](./images/smilies/icon_twisted.gif)
Re: on_entity_died event should include dropped loot data somewhere in there
Posted: Wed Oct 10, 2018 10:20 pm
by Rseding91
Ok. I've added "loot" to the entity died event for 0.17.
Re: on_entity_died event should include dropped loot data somewhere in there
Posted: Wed Nov 14, 2018 4:29 pm
by H8UL
So, it should be possible for a mod to mark loot for deconstruction on drop?
Which has some interesting prospects for multiplayer, but also automated biter farms...