How to use right mouse button for specific character


I have my character and enemy.

If I used the same pistol in my character and for enemy after click on right mouse button then use pistol.

I want to use only for my character.

In my case is possible use right mouse button for specific character (blueprint)?

I tried to use disable input on my enemy but not works. Maybe is possible disable buttons for my blueprint enemy?

I wouldn’t recommend using Get Actor of Class. It just gets one of your pistol actors from the game world. It can belong to either the player or the enemy.

Instead what you can do is take the output of SpawnActor Falcon and store it as a variable of type Falcon. You can then use it to call Fire on just the pistol associated with your character.