The description of ExtendedDamageManagerComponent.AddDamageEffect claims that the damage effect that gets passed is cloned, but this is not the case.
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 11 x64
- Category
- General
Steps To Reproduce
- Open MpTest.ent in world editor.
- Go to play mode.
- Execute the script below in the console:
IEntity player = SCR_PlayerController.GetLocalMainEntity(); SCR_CharacterDamageManagerComponent damageManager = SCR_CharacterDamageManagerComponent.Cast(player.FindComponent(SCR_CharacterDamageManagerComponent)); SCR_MorphineDamageEffect morphineEffect = new SCR_MorphineDamageEffect(); Print(morphineEffect.GetAffectedHitZone()); damageManager.AddDamageEffect(morphineEffect); Print(morphineEffect.GetAffectedHitZone());
- Notice that the second print isn't null as expected, indicating that it wasn't cloned.