Event call between BPs not sending int value

Hi all,

I have the following setup:

  • A client-side inventory HUD
  • A server-side character which holds item data etc

I am calling an event on the character from the inventory that SHOULD:

  • Send an integer value
  • trigger the next node

currently the next node is triggered, which causes an item to drop and a slot to clear. However, the integer value serverside is never updated and always sits at zero.
due to this, if I drop or equip an item, the first slot in the inventory is always cleared - even if I click a different one.

These are the relevant BP nodes with watched values:

The watched client value:

The event call:
eventcall.png

The serverside int value:

If I put a random int between 0-7 in on the server side, or indeed a fixed value within that range, the slot indicated will clear. So the only issue is the integer value not being sent/received.

thanks in advance for any help.

Bump as I really need a solution :frowning:

Bump, I have tried absolutely everything. Interfaces, functions, replicated custom events, casting to the inventory to retrieve it, casting to the player to set it. Why can’t I send a simple integer value from my inventory to my character? I’ve been trying to solve this for a week now.

could you give better pictures and explain it more?

Sure thing.

  • I have an array for my character inventory (server side)
  • I can pick up items and they will be placed into empty slots (via a bool check)
  • In the inventory UI, I have an integer value that is set when a slot is moused over/clicked (so client-side)
  • when an item is dropped, an interface event is called which drops the item and clears the slot
  • currently I am casting to the player to set an integer variable (executing on server)
  • when watching this variable, it is either always at 0, or not in scope
  • due to this, only slot 0 is ever cleared

here are some more screenshots:

This is the inventory casting to the int on my player

This is my player attempting to read the variable when clearing a slot

This is the clear slot function

hopefully that is easier to digest, I can make a video or get more screens if needs be