How do i get the world location of an object(blueprint)

Hi folks

This is my ongoing teleporter project in a multiplayer world.

I have 2 objects(blueprints). I have setup the teleporting scripting in the graph of object1. Both objects (object1 & object2) are in the world.

How i do get the location of object2 and referenced it to the teleport node.

I have opened a GetWorldLocation node in the graph but i cannot get the reference Object2 node in the graph itself to be linked to that node.

Help please. This is the finest piece of the puzzle that i need resolved. :slight_smile:

Have you tried using a blueprint interface yet? With a BP interface you can pass the world location directly from one BP to another.

Hi. didnt know about blueprint interface. will have a look at it.

anyways i have attached the graph but this is at level blueprint. i need it on the object bp itself as the player has to craft the object and place it in the world.

i need to replace the 2nd portal node to that object2 blueprint.

http://forums.vr-zone.com/photopost/data/1297/graph.png

GetAllActorsOfClass(your2ndblueprint) → array get node index 0 (assuming its the only one, otherwise youl have to choose a number that corroponds to the proper one) and then right click on the blue node and promote to variable. You now have a reference variable directly to that object.

You dont have to promote to a variable you can just drag off the blue return pin of array.get[0] but it allows you to reuse the reference. You can do this in any blueprint. It is a [tiny] bit hard on performance but since your only doing it for one object reference its negligable.

Hope this helps
Don’t forget to accept an answer that best clears your question up or answers it so when the community finds your question in the future via search/google they know exactly what you did to fix it/get it going.

hi…did not know what i did wrong…maybe it was late at night…lol…

anyways i managed to get the other blueprint referenced. linked to getworldlocation and attached it to the teleport but it did not work.

i have attached a screenshot.

can tell me what i did wrong? thank you

hi there

is it possible for you to put it in the graph? easier for me to understand.

thank you for your kind assistance…

  1. Create a variable in BluePrintOne of type BlueprintTwo.

  2. Go to your level BP, get reference of BlueprintOne, using this reference search node to set variable created in 1st step.

3)Get reference to BlueprintTwo and input it as value to your variable.

4)Now go to your BlueprintOne and you can use the variable created in first step as reference to your BlueprintTwo.

Let me know if it helps.

Thanks

Wtf is that image? Is your print screen button broken?

1 Like

LLL OOO LLL