The enemy only shows the gun when I put him in the level , and the the bullets do not move where the gun is pointed, they go in one pre-determined location whenever I fire. I looked at your other videos and could not find anything to help with the projectile issue I am having. Suggestions for more topics I have: Weapon switching, meelee attacks, aiming down sights, and reloading.
@JoeVonD3 жыл бұрын
Hey there! Thanks for the questions. To help with the visibility of the skeletal mesh check out Part 6 exactly at 9:28. Basically the FPS template has a render setting that makes the mesh invisible for other owners.
@JoeVonD3 жыл бұрын
The projectile issue could be more complicated. The current method of firing the projectile also came with the FPS template. It gets the location of the spawn target and the rotation of the player’s camera to determine where to shoot and in what direction. Check to make sure your PlayerCharacter is still inheriting the parent’s GetProjectileSpawnLocation function, we only overrode the Enemy’s in this video. And make sure the MasterFPSCharacter still has a spawn target component and a first person camera and the GetProjectileSpawnLocation function is set up correctly. It sounds like one of those functions might be having an issue.
@JoeVonD3 жыл бұрын
And awesome suggestions! I’m gonna finish the planned episodes from the showcase (really just menus, sprinting, health bars, and set dressing) but afterwards we can dive deep into these great topics!
@eddiegannon19343 жыл бұрын
@@JoeVonD Thanks for the reply. I tried looking for the spawn target component, but could not find it in my character, nor in the finder. I also could not find the GetProjectileSpawnLocation function. The enemy now appears in the level so I got that fixed.
@JoeVonD3 жыл бұрын
@@eddiegannon1934 I think the SpawnTarget is still called “Sphere” in the default template. We created the GetProjectileSpawnLocation in episode 5 around 12:44. It really just gets the location of the SpawnTarget (Sphere Collision) and the direction we’re currently looking to determine where to spawn the projectile and what direction for it to be facing. Whenever a projectile is spawned we can use the GetProjectileSpawnLocation function to determine those parameters for the projectile.