Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Weapon Master VR (UE4)

Weapon Master VR is a comprehensive weapon, pickup, and locomotion UE4 blueprint system for the HTC Vive. · By Heavy Diesel Softworks

Weapon Master Tutorials Sticky

A topic by Heavy Diesel Softworks created May 10, 2017 Views: 1,526 Replies: 7
Viewing posts 1 to 5
Developer (3 edits)

Tutorial #1: Weapon Master VR Character System

Tutorial #2 Part 1: AKM Magazine Firearm Maya setup.

Tutorial #2 Part 4: AKM UE4 Initial Setup

Tutorial #2 Part 3: AKM Blueprint Setup

Great Tutorial! Thanks. I have a question, for some reason my AI's / NPC's shoot to the right of the BP_VR_Character. I am new to Unreal and I have no idea how to make the AI shoot the Collision Capsule. I'm sure it has something to do with the BP_AI_Target or BP_VRDummyMover. But everything I have tried hasn't resolved the issue. Any ideas? Thanks in advance for your help.

Developer (2 edits)

Your npcs need to target the BP_AI_Target for right now, in the future they will be targeting the dummy mover. Is that how you have them set up?

If you have them targeting the player actor (which is how most targeting is done in Unreal due to how they have the AI blueprints set up) they will shoot at the center of the roomscale playspace because that is were the "Player Actor" technically is. This could be to left or right of you depending on where you are standing.

This is where Epic's definition of "actor" and roomscale VR don't exactly mesh up. To fix this we need to spawn a targeting actor (in my examples the BP_AI_Target) and move it along with the camera's position in the roomscale playspace (The player's position). This is done by default with Weapon Masters character.

If you go into the BP_AI_Target you can turn on it's sphere collision components visibility to make sure it is following you correctly. This can be helpful in debugging the issue. At this point your AI just need to know that they should be looking for this AI_Target actor and not the player actor. Make sure to show your AI's attack line traces so you can see where they are trying to aim (also great for debugging). Once we figure out what they are aiming at it will be easier to see what the issue is.

Are you using your own AI or an asset AI? When I get home today I can show you where in the zombie AI I set the Target they are looking for, maybe this will be similar with your AI and an easy fix!

Awesome I got it working now. Thank you for your quick response.

I love tutorials. Keep it up!

I'm having a weird issue when I retarget the zumbie to my own zombie mesh. It just floats in the air and bobs about.


That is odd. Currently Zumbie is not using epic's skeleton. We are going to be switching him over very soon (likely between 1.1 and 1.2) which should help with retargeting issues. Current zumbie isn't finished and we only included him for demo purposes. If your mesh is floating that is likely due a difference in root bones. When we move to the epic skeleton this issue should be fixed providing your mesh also uses epics skeleton. 


Just want to let yall know that alot of tutorials will be coming during twitch live streams. I will link those videos here as well as the more focused youtube ones.