In my game, I pass an Actor and a Structure to a custom event. This looks through an array of Actors, and if it finds a copy of the input Actor, removes it. Buuuut, for some reason it doesn’t work.
I’ve verified that the input Actor IS on the array checked (index 1 of a length 3 array), and the execution lines both before and after the Branch fire, but the Remove Item node just… doesn’t fire? The Print String at the end prints True, but printing the items in the array after the event finishes prints the original 3 items without the input Actor having been removed.
I know I’m prolly overlooking something extremely stuipid but I need a second set of eyes to give it a once-over and let me know what I’m missing…
Note that the struct parameter is set to “pass by reference” and shown with a diamond symbol as @Everynone has shown. You are still passing a copy when the symbol is round.
EDIT: I found that to get the diamond I have to set the input to pass-by-ref, compile, delete the input, then add the input again. Dunno why but now I have the diamond at least…