dcsext.systems.WeaponImpactTracker
WeaponImpactTracker.
Contents
Description
Tracks DCS Weapon objects to impact. Only weapons conforming to isWpnValid will be tracked. Will emit a custom impact event to all of DCS upon impact detection.
Metamethods
weaponimpacttracker:__init(updateRate, eventID, weaponLifetime)
Parameters
- updateRate
- eventID
- weaponLifetime
Methods
weaponimpacttracker:isWpnValid(event)
Only consider Weapons not fired from air defence units and have HE warheads. This method is intended to be overriden so that mission builders can customize which weapons should be tracked.
Parameters
- event
- A DCS Shot event.
Returns
- true if the weapon should be tracked.
weaponimpacttracker:handleShot(event)
Parameters
- event
weaponimpacttracker:run(time)
Parameters
- time