Skip to content

Multiplayer Series UE4 [3] – Character

Firing

Now it’s time to shoot some bullets.

So first thing, go to Character and in PlayerCamera add Scene Component and rename it as CameraAim.

Move it forward far away in X axis.

Now it’s attached to camera and it’s like this.

Add second Scene Component.

Use AttachComponentToComponent for attaching it into a weapon.

Now we need to create DamageMacro.

Add the variables you are missing.

ProjectileHitAnimsPlay is replicated and it’s used for animation blueprint.

DamageMacro.

Click for bigger

Add six of them into OnComponentBeginOverlaps for Damage Collision boxes.

FireProjectile event.

Fire input action. This is kinda spammy but also accurate. Controlling shooting with replicated boolean would be much harder and problematic.

Pages: 1 2 3 4 5 6 7 8 9 10 11
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Level Paradox
0
Would love your thoughts, please comment.x
()
x