I have part of the implementation code for installing the sword in the hand slot for the character and the implementation of the interact code for implementing lifting objects lying on the ground into the inventory, when I put a place in the inventory in the weapon slot, the inSlot variable becomes true, by default it is false, during the debag I see that it has false anyway. The In Slot variable in the Sword Info structure has (in the screenshot) has true, but when creating an actor, a sword that has false will appear there, could I somehow make it so that true is in the sword that is directly in the hand so that the implementation of lifting in the inventory does not process this object?
You need to expose on spawn your struct inside weapon actor and set it.
I’m new to UE. Can you tell me how I can set the same value to true in it? It’s just that I can only return a reference to the object after executing the Spawn Actor function and only read the value using Break ItemInfo_S, and I do not know how to change it?
The issue is resolved, thank you
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

