Weapon BP Overview
In this chapter, we take a look at the BP_Pickup_Rifle and explain how the pick-up mechanics work and what happens when we shoot with the rifle.
BP_Pickup_Rifle has a SphereCollision component once a player overlaps with this invisible sphere, an event called On Begin Overlap fires off which first checks the overlapping actor and makes sure that it is a BP_FirstPersonCharacter, then saves a copy of that and checks if the player already has a weapon in their hands. If they do not, then it adds a component called BP_Weapon_Component to the FirstPersonCharacter.
-
The
BP_Weapon_Componentis then attached to the hands of the player and thenBP_Pickup_Rifledestroys itself. -
The
BP_WeaponComponenthandles the logic of spawning a projectile (Bp_FirstPersonProjectile), playing a sound of gunfire and an animation (for the arms).
Bedankt voor je feedback!
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 4.17
Weapon BP Overview
Veeg om het menu te tonen
In this chapter, we take a look at the BP_Pickup_Rifle and explain how the pick-up mechanics work and what happens when we shoot with the rifle.
BP_Pickup_Rifle has a SphereCollision component once a player overlaps with this invisible sphere, an event called On Begin Overlap fires off which first checks the overlapping actor and makes sure that it is a BP_FirstPersonCharacter, then saves a copy of that and checks if the player already has a weapon in their hands. If they do not, then it adds a component called BP_Weapon_Component to the FirstPersonCharacter.
-
The
BP_Weapon_Componentis then attached to the hands of the player and thenBP_Pickup_Rifledestroys itself. -
The
BP_WeaponComponenthandles the logic of spawning a projectile (Bp_FirstPersonProjectile), playing a sound of gunfire and an animation (for the arms).
Bedankt voor je feedback!