I’m using Unreal Engine 5.5.0 and trying to make it so that if a button is pressed on a controller in a VR game, a projectile is shot out of whatever arm the button was pressed on (so if they press the trigger on the left controller, a projectile shoots out out the left hand, and same for the right) but I can’t get the projectile to actually appear
Hey @Name3425! Welcome to the forums!
What’s likely is you need to turn off collision with the projectile VS the player’s collision. Because it’s likely it’s trying to spawn in but is immediately colliding, provided you have collision turned on for the projectile. Try setting all of the collisions on the projectile to “Ignore” and see if it spawns! If so, that’s your culprit!
Hope this helps!
No, that unfortunately didn’t work
Okay, then. If that didn’t work, you should post pictures of your code so we can take a look at it! We don’t really have a lot to go on here and some pictures would really help us get to the root of things!
All I really had to go off were any tutorials I could find, but since none of them were for VR, I kind of just had to guess for a good chunk of it
It isn’t in the image, but I do have the projectile set for the “SpawnActor” node, and it’s set to “Ignore collisions, always spawn”
Okay! So with that last bit, that’s great but not what we were asking about in the first post. No worries though!
You need to go to your projectile Blueprint, and select each component that has collision, and set that collision to “Ignore All”.
Again, this won’t solve the problem, but we’re trying to find the cause then go from there! But if you’re doing something this simple here, the problem is likely on the Projectile.
Another thing you can do is put a printstring anywhere in this to prove that the event is going off in the first place!