That’s great! You should be able to tackle the door thing later. That’s actually why a lot of doors in video games swing both directions!
Okay, so now the lockers. What the first Error says is "There is nothing set as TargetLocker, so we can’t tell the AI to move to it. If you click on those underlined parts, it will show you that node.
So, first, you need to use an “IsValid?” macro check on the locker (that’s the gray node) so it doesn’t try to navigate to one if one isn’t set yet.
Get us some good pictures of your code and let’s work on the locker!
Sorry, you’re going to have to give the whole code. I can’t see where you’re putting this function.
But what you do is you use an IsValid Check to check if the specific locker you’re about to tell it to go to is valid. you plug that in to the “InputObject.”
Basically what you’re doing here is checking if it has a place to go, before telling it to go there. You pass in the locker through the check, then if it IS valid, go to the locker, if it IS NOT valid, don’t go to the locker.
Okey! I Will try this. But first I want to change the way the door opens and closes. It doesn’t open both ways, which would be far more convenient considering the player/AI’s position, so you don’t run into the door while it’s opening.