Gun pickup -> Spawn Gun-> Firing Gun via BP interface isn't working. No event triggering?
Hello all. I'm super new and learning. I'm mainly a 3D artist but I've been following various tutorials online and I've set up a bunch of things but now I'm stumped.
I'm picking up a gun in the world (Gun_01_pickup) and by using it I equip (Gun_01_Blueprint with hopefully all future mechanics and logic) to my character. This character then uses a BP interface (which i've assigned to all BP's) to send a fire weapon event (via the character blueprint). This fire event doesn't trigger in my gun blueprint. My mechanics are as following... Step by step.
You can pick up a weapon and get it placed in your inventory. Using it despawns this item (Gun_01_Pickup) and spawns the real one (Gun_01_Blueprint) on your character and sends out an equipped bool true.
I then use this to check if the weapon is equipped and react accordingly. It works, everything prints as it should.
When I equip my gun it plays the sounds and the model is different so I know that works but I can't figure out at all why my fire weapon interface isn't working. I've tried everything, this is just a basic version of all the multiple attempts I've done. What am I missing?
EDIT: I realize some stuff should probably be in the gun_blueprint, like anything having to do with the shooting. I'm probably gonna juggle it around at some point but right now I just want it to work.
I'm probably also gonna have to redo the weapons aswell so it's not a usable item but an equippable drag n drop one. That's a challenge for the future though!
I half solved it. I moved everything gun-related into the spawned gun blueprint and removed the fireevent from the action interface and put a regular input action left mouse button there. Now it works well enough for me to iterate on the shooting part at least.
answered Jul 15 '15 at 06:54 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here