How can I create puplic variables/edit collision boxes

Hy guys,

I have two problems. The first is the documentation (https://docs.unrealengine.com/en-US/Engine/Blueprints/UserGuide/Variables/index.html)
I tried the Guide but after I used the manual the blueprints still could not access the variables of the other blueprints
In the example “first person shooter” I use the numbers 1-9 to create objects. In order to switch between the different objects, the Collisions boxes of the existing objects must know what value a variable (Objectswitch)

And that is where we come to the second problem. The mean point of the created objecte is always center of the collision boxes. And I haven’t found anything on the internet about the fact that you can set the Collisionboxes so that you can create the objectto to a pre-difined position

If you want the collision box to be somewhere other than on 0,0 in the BP, you can drag it somewhere else:

321549-drag.gif

You can drag any component of the BP to any position, like this.

Make two bp, BPA and BPB.

In BPA put a new bool and click the eye:

321544-screenshot-2.jpg

Compile, save.

In BPB, make a variable, of type ‘reference to BPA’ ( also make it public ):

321545-screenshot-4.jpg

Now drag 1 of each into the level. When you click on BPB, you can set WHICH BPA you’re talking to:

Now, when you play, BPB will be able to see the boolean in BPA, like this:

321547-screenshot-3.jpg

OK thanks but how can I make a control if Object Referenz has the value 1 or 1-9. If value=1 it should create a rectangle and if the value =2 the bp creates a oder object. According to the reference, I should create a p variable in the first BP again and give it the same value as the first variable. That is at least how I understood it.

So you have a var is BPA that dictates the kind of shape BPB will make?

In short: I try to recode a game like Minecraft/Satisfactory. My friend wants to make a Game company. And my part is to code the game. I want to recode games like Minecraft and other games to learn how to use the Engine. But I think I use the wrong way to create my test game

make a control if Object Referenz has
the value 1 or 1-9. If value=1 it
should create a rectangle and if the
value =2 the bp creates a oder object

This can be done with what I showed, except the bool needs to be an int, that’s all.

If you want to make something like Minecraft, it’s time to switch to C++, as blueprint will not be fast enough. It’s good for learning with though.