Page MenuHomeFeedback Tracker

CanDisplayCargo not working as intended
Closed, DuplicatePublic

Description

Using CanDisplayCargo, for child entities as attachments is not actually working. Trying to hide the inventory cargo of an item when it's an attachment, still shows the inventory. A work around is to lock the inventory from script, but that prevents seeing the attachments. Additional example below.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Additional Information

Clothing attached to 'CoatRack' still show the cargo when attached.

modded class Clothing
{
    override bool CanDisplayCargo()
    {
        if (!super.CanDisplayCargo())
            return false;

        if (GetHierarchyParent().IsKindOf("CoatRack"))
            return false;

        return true;
    }
}

Event Timeline

Xairo added a subscriber: Xairo.Aug 18 2021, 6:32 PM

Merged into duplicate ticket above. Can close this feedback as duplicate.