Hi everyone,
already posted a similar question yesterday but I guess I described it not properly. I have a Blueprint which is placed several times on my map. Now if I press a button on my keyboard (e.g. “1”) I want that all of these BP an event is triggered (The BP contain several static meshes that the player can cycle through) .
My problem is that no matter what my key press just won’t fire in the BP - I think it is because the BP are not the “Player” and Input won’t get through. Can anybody help ?
Don’t use input in actors other than your Character BP or Level BP; it rarely works as planned.
What you want to do is create a Custom Event in the BP, and call that event from the Character or Level BP.
Let’s say you have a Door BP, and you create a Custom Event called Open Door. In the Character or Level BP you do the following: Press 1 => Get All Actors Of Class (Door) => Foreach Loop => Open Door
Ok so I think I understand your solution and I think I even built the BP correctly but unfortunately it is still not working. I should probably say that this is used in a VR Environment and that I am using the Unreal VR Template. It just seems that it doesn’t take any input from the keyboard… if I am simulating/running the game The BP also don’t show any reaction when pressing keyboard keys… So here are the BP - I am now calling my BP_MeshSwitch from the Lvl BP
EDIT: Ok I found the problem - the PC I tested the new BP didn’t have the Rift plugged in as soon as a rift with motion controllers was connected it worked as intended. Thanks a million!