Set members in struct not working

Hello, Im trying to set members in struct but It wont allow me to… I set boolan to false and its still true


Because this is a copy:

Do it in a function and pass-by-reference:

Not the shape of the pin icon.


Its not a copy and I need to call it on server

Event gotcha. :slight_smile: It’s a copy. You can tick that tickbox all day long. You posted about it yourself…

Okay, but for getting struct from array im getting get ref always everywhere and when im passing item to another function pass by reff is ticked everywhere. So how I can set members on rpc

It does not work with Events, it never did. It works with Functions.



Still not working

  • this prints 0:

  • this prints 5:


If this part of the script does not work, look for issues elsewhere, earlier, where the data might have been copied. For example, this will not work either:

Maybe I explained myself wrong. I set variable and it works but its not getting refreshed to my item drag widget