Sticker API from ammo action

Place to get help with not working mods / modding interface.
Post Reply
Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

Sticker API from ammo action

Post by Schallfalke »

I want to make some ammo/capsule that targets stickers on a unit. (For example, a water gun to remove fire-sticker.)
Is there a good way to do it from ammo API? (Or within action, action_delivery, target_effects, or whatever...)

Searched old posts and I found one at 2017.04: viewtopic.php?f=65&t=40958&p=242163. It is control.lua code.
With 0.18, it is possible with on_script_trigger_effect event. As it involves surface.find_entities_filtered, so I doubt if it is efficient.

I am raising this post to ask, if I can do it in the ammo/projectile prototype declaration purely? (So all at data stage.) This way I can avoid calling surface.find_entities_filtered.

Thanks in advance,
Schall

User avatar
kizrak
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Thu Jul 19, 2018 1:27 am
Contact:

Re: Sticker API from ammo action

Post by kizrak »

Also interested in this knowledge if someone knows 👍

Post Reply

Return to “Modding help”