Search found 3 matches

by Ratte
Thu Jun 02, 2022 6:52 am
Forum: Modding help
Topic: [Solved] Artillery Projectile Created Event
Replies: 5
Views: 1710

Re: Artillery Projectile Created Event


May want to double check that the artillery prototype has that defined?

When searching for on_trigger_fired_artillery in the base game data, there are zero hits, so seems like it hasn't defined it by default, which makes sense, as the base game doesn't use it.


I'd try Prototype ...
by Ratte
Wed Jun 01, 2022 8:23 pm
Forum: Modding help
Topic: [Solved] Artillery Projectile Created Event
Replies: 5
Views: 1710

Re: Artillery Projectile Created Event

Sadly no, my listener got no events.
The other thread talked about performance, and that by default this is disabled, but I don't know how to enable it.
Just to make sure again, I made this control.lua:

local function ArtilleryFired(event)
game.print("on_trigger_fired_artillery")
end
script.on ...
by Ratte
Wed Jun 01, 2022 7:15 pm
Forum: Modding help
Topic: [Solved] Artillery Projectile Created Event
Replies: 5
Views: 1710

[Solved] Artillery Projectile Created Event

The Problem:
I want to try and mod artillery-projectile behavior, like spawning effects below it or colliding with defensive enemy entities on the way.
For this, I need an event listener on artillery projectile creation, to keep track of all currently flying artillery projectiles.

My Journey:
I ...

Go to advanced search