Blueprint not getting information from object reference

So I have a somewhat simple blueprint here. I’m just trying to make some basic portals-This blueprint should detect when the player stands on it, take the location of the other portal, teleport the player there, then stop them from teleporting again for a small time. But when I actually try playing it, I just get the error code “unreal accessed none trying to read property BluePortal”

I’ve tried looking everywhere for an answer but I’ve gotten nothing. It just doesn’t seem to be taking any information from the blue portal script for some reason. The blue portal script it pretty much identical to this one. Im real new to this so I know it’s probably a really simple fix, but still any help would be appreciated.

You have not set the blue portal variable. The system needs to know which blue portal you mean :slight_smile:

Hm I see-How exactly would I do that? I now have the node to set the BluePortal variable to something, but I don’t really know what to hook up to it to tell it what to set it to

Is this code from a BP that you put in the level?

Then you ‘expose’ the variable ( click the eye icon next to it ) and set it in the level with the eye dropper tool.

Alright I just tried it-Previously the OrangePos/BluePos variables were just returning 0, 0, 0 I’m pretty sure so I was teleporting to the center of the map when I stood on them, but now when I stand on them just nothing happens. There’s no error messages anymore so something’s being done right, but yeah it’s just not teleporting me anymore. I’ll try to figure that out but if you know what’s going on there then lmk

I can’t help if you don’t answer my question :slight_smile:

Well yes, both the Orange and Blue portal BPs are in the level

Ok, and did you use the eye-dropper tool to set the variables?

Indeed I did

Ok, then it’s a logic problem.

I think you need an AND, not a NOR, and then take the code from the false branch

Also, not a bad idea to set the portal busy before the teleport.

Just got everything worked out-I think the issue on that last bit was some error with event tick not working or something-Regardless, thank you for your help

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.