Page MenuHomeFeedback Tracker

[Feature Request] Ability via scripts to set triggerTime and triggerDistance for submunitions
New, NormalPublic

Description

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.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

namenai created this task.Mon, Sep 2, 10:25 AM

I'd add shot into command name to distinguish it from triggers. Also maybe use same names as titles for values in https://community.bistudio.com/wiki/getShotInfo ?

setFuseDistanceLeft or setShotFuseDistanceLeft
setTimeToExplosion or setShotTimeToExplosion

I was not aware of getShotInfo, I think it be good to keep in line with it so setShotFuseDistanceLeft and setShotTimeToExplosion sound reasonable.

NikkoJT added a subscriber: NikkoJT.Wed, Sep 4, 7:07 PM