GetActorLocation not referencing selected actor

Hello,

I am trying to create a GetActorLocation node and have it reference my Point Light like this person does at 2:35 Working With 3D Vectors - #8 Unreal Engine 4 Blueprints Tutorial Series - YouTube

However, despite having the actor selecting in the play window, GetActorLocation does not reference it.

Why is this?

Thanks for your response, again. So if I understand you, what I should do is create the Point Light actor inside of the blueprint and then I’ll be able to reference it?

This person does in the Level Blueprint which allows drag & dropping references directly into its Graph. This light was manually placed in the Level so the level knows about its existence.

You created an actor that has no idea what Point Light is, which Point Light it is or where it is. You could just give this actor its own light (the greed Add Component button) and the reference will appear on the list.


If you wish to get a reference to something that does not belong to this actor, blueprint comms is what you need:

It’s one of the most essential topic and not that easy to wrap one’s head around. There are plenty of tutorials that deal with communication and casting, fortunately.

It all depends on what you’re trying to make.

But yes, each actor can have its own light and then you can place as many instances of this actor in the level.

And GetActorLocation isn’t detecting
it.

It shouldn’t, I mentioned this above. This is a feature of the Level Blueprint. I believe you’re having problems with this because you did not follow the tutorial carefully enough. The author is working in the Level Blueprint, you’re not.


If you want to work with the actor you created :

You have the Point Light reference on the list on the left. Drag it into the graph, drag a wire from its blue pin and search for Get World Location.

You will not be able to use Get Actor Location because the light you added is not an Actor, it’s just a Component that you added to the actor.

I’m just trying to create a simple vector blueprint that tells me the destination of the point light. Now I’ve created a blueprint class, made a point light inside of it, placed it in the play window, and tried to create GetActorLocation, but it still won’t reference it. And I’m stuck.

In the image you can see the orange light I have selected in my play window is the same light I have selected in the blueprint window. And GetActorLocation isn’t detecting it.

Oh, level blueprint. I’m not sure how I skimmed over that in your previous post. You’re saving lives here, much appreciated.