When using the modded keyword on class with functions that returns bool, all those functions lose their return type (mb not only bool-functions lose, not chcked)
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 11 x64
- Operating System Version
- 22H2
- Category
- Scripting
Steps To Reproduce
- Create script file with code:
modded class SCR_AIDangerReaction_WeaponFired { override bool PerformReaction(notnull SCR_AIUtilityComponent utility, notnull SCR_AIThreatSystem threatSystem, AIDangerEvent dangerEvent) { return super.PerformReaction(utility, threatSystem, dangerEvent); }; };
- Try compile and you get error:
Can't condition 'void' type