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
Sticker API from ammo action
-
- Fast Inserter
- Posts: 162
- Joined: Sun Oct 28, 2018 7:57 am
- Contact: