Firing Silver Bullets

The next thing in the to-do list is to add the possibility for our Player to shoot Silver Bullets. So, let’s start by creating a Fire event (it should already be in the Project Settings set as Input; otherwise, be sure to create it as we did back in Project 1):

If you have inherited the Player class from something else, it is probably also a good idea to check that this event overrides the parent implementation:

From now on, we are going to be very specific which function runs on the client and which one on the server ...

Get Unreal Engine Blueprints Visual Scripting Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.