Is it possible to directly generate pollution within a trigger?

Place to get help with not working mods / modding interface.
Galadedrid
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Nov 26, 2024 1:29 pm
Contact:

Is it possible to directly generate pollution within a trigger?

Post by Galadedrid »

I'm trying to repurpose the Vulcanus "create a smoke cloud when an item is destroyed in lava" trigger for Nauvis, but while I'm aware of the pollute function I'm not actually sure how I would go about calling that within an action_delivery - or indeed how I could make sure the pollution appears at the location creating the trigger even if I did.

Is there a straightforward way to accomplish this?

To clarify, the Vulcanus function is:

Code: Select all

local destroyed_item_trigger =
{
  type = "direct",
  action_delivery =
  {
    type = "instant",
    source_effects =
    {
      type = "create-trivial-smoke",
      smoke_name = "smoke",
      offset_deviation = {{-0.1, -0.1}, {0.1, 0.1}},
      starting_frame_deviation = 5
    }
  }
}
I would like to know if it's possible instead have the action create a small puff of pollution at the location the effect is triggered.
Post Reply

Return to “Modding help”