Array AI movement Error



So in the first picture there is code for players to move on an array from ryan laley’s https://www.youtube.com/results?search_query=ryan+laley+mario+party
I am trying to figure out why the code is now messing up? Can anyone help me with this error, I’ve tried a few things already.

1 Like

How / where / when do you call Move To Space?

try to use " is valid " node after currecnt space of the event, if only is valid true continue the code, if does not work try is valid in both currecnt space of the event + the currecnt space variable.

@rare_flower The errors are there for you to deal with / handle. Not sweep them under the carpet… that’s gonna bite you sooner rather than later. If you expect an invalid reference - that’s great, handle it. However, OP has errors thrown that should not be there, especially considering the tutorial they follow.


this is where I call the move to functions

This part makes little sense:

It’s not doing anything. It’s using a null variable to set the same var to null? What is Current Space - how do you set its value?


It could make sense in some kind of recursive / cyclical function. Hard to tell without knowing more, though. That variable has no value according to the error message. Look into that.


The code is suppose to loop a 4 player turn based system. Like mario party

We still don’t know how this part works. Your screenshot does not show it.

The is valid node will not hide the error under the carpet. Instead, it will block it from being under the carpet. An example: You want to pay money to the seller. You got the money out of your pocket, but you need to search in the money to find the $100 paper. You will search three times, then you find it. (In Unreal Engine 3, searching 30 times does not matter, especially if you filter it.)

If you want to find the $100 the first time, it might take a very long time to make a plan and tools that show it first every time. It also might take a short time, like putting it in the first index.

So, in short, Is valid is filtering to block anything from being under the carpet. It does not keep it under the carpet. If this were not the case, why would it even exist? The last thing to say is that we use the filtering and blocking system a lot in AI systems, so it is not bad to use.

@rare_flower Sorry mate, but you make no sense whasoever. OP wants to find out what is causing the error, you suggest filtering it out. Do explain how it helps :innocent:


We already know the reference is not valid, that’s fine and useful - as all errors are. We’re trying to figure out why it’s invalid. Hope you follow.

for some reason i added a do once in the part of the code where you start up the movement