Page 1 of 1

Sticker API from ammo action

Posted: Sun May 10, 2020 9:25 pm
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

Re: Sticker API from ammo action

Posted: Sat Jul 11, 2020 5:47 pm
by kizrak
Also interested in this knowledge if someone knows 👍