I believe it will be very helpful to be able to set triggerTime and/or triggerDistance via scripts for ammo. Currently they can only be set via config and not dynamic. This would be very useful in combination with triggerAmmo.
A few example use cases:
- XM-25 Airburst rifle, where the triggerDistance could be taken from weapons zero, or distance to whatever the player is aiming, or perhaps the player enters in some dialog box before shooting.
- Flak explosions for AA turrets that are not able to lock on.
- Airburst rounds from a tank, similar to the XM-25 example but vehicle based instead of infantry weapon based.
- Variable deployment time for flares, again how that triggerTime/triggerDistance is picked is open ended to the scripter.
As for how the command could look I think something like
ammo setTriggerDistance 100 ammo setTriggerTime 10
Finally if not too complicated and feasible, being able to set the other fields (triggerOnImpact, deleteParentWhenTriggerd,,triggerSpeedCoef,...etc) via scripts could be beneficial as well, though I am not sure of a use case my self.