x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

alt text

I then use this to check if the weapon is equipped and react accordingly. It works, everything prints as it should.

alt text

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?

alt text

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!

Product Version: UE 4.8
Tags:
01.jpg (403.4 kB)
02.jpg (381.5 kB)
03.jpg (290.5 kB)
more ▼

asked Jul 12 '15 at 03:51 PM in Blueprint Scripting

avatar image

Wahlgren
1 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Jul 15 '15 at 06:54 AM

avatar image

Wahlgren
1 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question