Hello Community,
as the title says, im trying to fire a click event which is on a UI button. This button restore Mana for my player. The widget is Clientside but when i click it only works for one of 3 Players. Which is werid because i made a ThirdPersonCharacter reference from :
thirdPersonCharacter BP (Self reference) → Add Item to inventory (Inventory BP, variable thirdPerson ref) → Add Item to List (Inventory Widget BP, variable thirdPerson ref) → From there i create a BP ItemSlotWidget, pull out the set PlayerRef variable which i create and set it to the Click event inside.
The click event get the player ref, pull out the Mana variable and set a new value stored from a ItemStructure i’ve created.
It works fine, but only for one single client player.
When i click, there is for all 3 Players a Print which tells me the correct value of the Mana potion.
Replication should be the reason due to it is UI and client side, right?
Not sure if a Screenshot is required. I can make it but there will be a lot i guess. Above is the summary.
In Short, i want to use a mana potion from the inventory in my player, but it only works for one of the 3 instances (2 clients and 1 server host).
Any help is apreciated