You are going to create a First Person NURF Hit Test. The final goal is to make a NURF gallery game. Details to be updated soon.
You are going to create a First Person NURF Hit Test. The final goal is to make a NURF gallery game. Details to be updated soon.
You need to first demonstrate that you can
Basic Elements of a the User Interface
First, download the Starting Template here:
Click Download Anyways
Open the File Explorer at the bottom of the screen. Click the yellow folder on the Taskbar.
Open your Downloads.
Select the FP_NURF_HitTest and Copy it . . . {Ctrl} + {c}
Again, open the File Explorer at the bottom of the screen. Click the yellow folder on the Taskbar.
Open your Documents.
Open the Unreal Projects Folder
Copy & Paste or Drag the Zipped file into the Unreal Projects folder.
Right-Click on the Zipped FP_NURF_HitTest folder and a drop menu will appear. Choose Extract All ... This will take out all of the files from the Zipped folder and make a new unzipped folder.
A new window will open asking where you want the files extracted to. The same location is the default location. Choose Extract.
A new folder will appear. You can delete the Zipped folder or keep it as a backup.
Once Unreal is open, choose My Projects
A new window should open, select FP_NURF_HitTest and open.
It should look like this when it opens.
Drag a Sphere from the Place Actors *If your Place Actors window is not there, see below.
*If your Place Actors window is not there: Windows > Place Actors
and the outliner will show on the right side.
Change the material to something unique like the 'Hex' material. Search for "Hex"
It should look like this.
With the Sphere selected, convert Actor into Reusable Blueprint Class
A new Viewport window open.
Choose Static Mesh and the details will update.
Note: Detail window disappeared. I had to turn in back on. Windows > Details
Select the Static Mesh component and the Details content for the new Static Mesh component will load.
Scroll down in the Details tab and Under the Collisions section: check Simulation Generates Hit Event
Open Event Graph Tab.
Select Everything and Delete.
Right-click on the Static Mesh component Chose Add Event > Add OnComponentHit
The new On Component Hit Node opens up.
Drag Other Actor from the On Component Hit Node and release.
Search for "Cast to FirstPersonProjectile " by typing "Projectile" and select.
TEST DESTROY ACTOR: Drag Blank Output from the Cast to FirstPersonProjectile node and release. Search for by typing DestroyActor.
It should look like this. Now Compile and Save. Play the game to make sure it disappears on hit.
Disconnect The Distroy Actor Node by holding {ALT} key and click on the output node
Add: Play Sound at Location
Add: Set New Material
Add node Delay . . . the final Node setup should look like this.