Page MenuHomeFeedback Tracker

modded bool function lose its return type
Assigned, NormalPublic

Description

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)

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Operating System Version
22H2
Category
Scripting
Steps To Reproduce
  1. 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);
    };
};
  1. Try compile and you get error:
Can't condition 'void' type

Event Timeline

vlad333000 changed Category from General to Scripting.
Geez changed the task status from New to Assigned.Nov 20 2023, 6:44 PM