Is it possible to directly generate pollution within a trigger?
Posted: Tue Nov 26, 2024 1:33 pm
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:
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.
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
}
}
}