You are going to create a First Person Shooter Gallery. The final goal is to make a shooting gallery puzzle. Details to be updated soon.
You need to first demonstrate that you can
- Add a Static Object w/ Physics.
- Add a Dynamic Object w/ Physics.
- Add a 2nd Dynamic Object w/ Physics- change Mass (very heavy).
- Add a Dynamic Object w/ Physics AND constraints.
- Change Materials for each Object.
Basic Elements of a the User Interface
- Level Editor
- View Port
- World Outliner
- Details
- Content Browser
- Place Actors
Creating Basic Elements
Create New Project > Game > First Person
It should look like this . . .
Select all the block in the scene and hit <Delete>
You can also select them in the outliner. Shift select Block01 -Block04, the cylinders, and press <Delete>.
If your outliner is not there: Windows > Outliner > Outliner 1
and the outliner will show on the riught side.
You can also select them in the outliner. Shift select Block01 -Block04, the cylinders, and press <Delete>.
It should now look like this . . .
Hit Test
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"
With the Sphere selected, convert Actor into Reusable Blueprint Class
A new Viewport window open.
Choose Static Mesh
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.
Under the Collisions section: check Simulation Generates Hit Event
Open Event Graph Tab.
Delete Everything.
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.
Add: Play Sound at Location
Add: Set New Material
Add node Delay . . . the final Node setup should look like this.