I made my character hold crossbow in righthand socket and I want to make it shoot when crossbow is selected, not when it has nothing on its hand. How do I make a condition of it? I made something like in the Picture but doesn’t work obviously. Maybe you can help me. Thank you.
Can you post a screenshot of the shooting logic? You should be able to use a Branch node and only allow it to shoot if the bool is true and then do nothing on false.
yes but character needs to be able to toggle the crossbow.
Use a Flip/Flop node to do the toggling of the Bool value.
I can’t fix it with Flip/Flop. There are 2 items: torch and crossbow. I need a condition when crossbow is in the socket, not torch or not when the socket is empty.
Anyone can help?
You can use a flip/flop to set both at the same time sort of like this like:
When one is being set to true the other is being set to false
I got it now, this might work. I will let you know if it solves my problem when I try it. Thank you.
Another option is you can setup both the torch and crossbow as child BPs to a “master Item BP” and in the master setup the variables and functionality of both then setup a “is active” bool and from the player pawn call a function to set it as active and at the same set the others as inactive.
First one solved my problem. Thank you really!
To Mods: I couldn’t select that as a answer to question because it’s a comment.

