What is a "new Actor variable" ?!?

  1. You just need to create a new variable as usual, but set its type to Actor (reference). Cheers.
  2. Yes, referring to Pawn always means referring to the currently set Pawn, in your case VR_Pawn.

Hi there, I am working trough the docs.unrealengine.com. To be more specific: I am stuck at the lesson “Motion Controller Component Setup”. I followed all steps until the 5. step:
“In the Blueprint panel, navigate to the Event Graph tab and create a new Actor variable with the Name Objects with ist variable type to Array.”

I don´t understand that completly: What is a “Actor” variable? What is the diffrence to a variable?
The screenshot doesnt show the steps in detail.

Beside that in step 4 the say "Close the BP_Spehre Blueprint and open up your Pawn Blueprint.
Does they mean the VR_Pawn Blueprint which is created in the first steps in the tutorial?
Is this correct? VR_Pawn = Pawn Blueprint or they mean another one?

Thank you but there is another question: In the screenshot on the 5. Point they set as Variable Type: BP_Sphere.
Does it mean they don´t make the variable type to Actor(reference) and instead they set the variable type to BP_Sphere (object type). Somehow this is very confusing:

Now my variable is set as you proposed (look at the 1. Picture).
BUT in the tutorial they have make the variable type: BP_Sphere(see Picture 2):
I am very confused at this point.

that is an integer being subtracted by 1

Maybe someone is able to answer. What is this in the red circle:

119499-4.jpg

To be more specific, the length function will return the number of elements in the array. However in programming, the first index of an array is 0. Which means the 10th element of your array will be at the index 9 for example. Here, if you don’t subtract 1 to the length of the array, you will try to access (using get) an element of the array which doesn’t exist. This would lead to an unexpected behavior.

Best regards.

yes, just type BP_Sphere (needs to be created first) when selecting type of variable, it should find it.

However, that one is bad practice, you should drag a pin from the array, and use LastIndex instead of this monstrocity.

Didn’t know about this node. TY :stuck_out_tongue:

Ok thank you for the first answer. But what is this:

119511-3.jpg

It seems i have forget something. Can´t make the second part of the tutorial work. The motion controllers are functional as it should be. But the part with the trigger button for the right handed Motion Controller spawning a static mesh doesn´t work for me. Please take a look at my current blueprint: I even can´t spawn this static mesh with the “K” Keyboard button.
Is someone able to help me?