The Current ProximityTriggerComponent is lacking any accessible getters and setters making it hard to script custom behaviours for proximity rounds that have different modes. Being able to access all the attribute values including enabled state would be useful for weapons with multiple fuse settings such as those found on the M734 fuse which has modes for different proximity fuse distance on top of impact and delay used on US mortars since 1977.
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 11 x64
- Category
- General
Steps To Reproduce
Create a script that references a ProximityTriggerComponent
Try to call a getter or setter function from the reference.
see that there are none available
void SetFuzeSetting(int setting) { if (!m_bIsUsingSettingFuze) return; m_fFuzeSetting = Math.Clamp(setting, m_fMinFuzeSetting, m_fMaxFuzeSetting); ProximityTriggerComponent trigger = ProximityTriggerComponent.Cast(GetOwner().FindComponent(ProximityTriggerComponent)); if (!trigger) return; //this failed to find any getters or setters for the component attributes trigger. } }