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"

Input action issue in BP

Hi,

I got a big problem with the input actions. I got a weapon blueprint where I added some bp logic for rotating the weapon turret and firing.

Now when I add the bp to my player character I can rotate the turret but the "input action left click" don´t fire his event. If I add a second player character (copy) the rotation don´t work either.

So I try to find some answers in the www but all the hints didn´t work. I disabled consume input in the input action try to enable inputs before and the auto input were tested too.

I´m testeing arround for 3 days now and couldn´t find the solution, I hope someone of you could help me out.

Best regards Harlyk

I made some images, perhaps it helps!

Input actions project settings player character player controller weapon blueprint

Product Version: UE 4.8
Tags:
more ▼

asked Jul 02 '15 at 05:47 AM in Blueprint Scripting

avatar image

Harlyk
10 8 8 9

avatar image Enlo Jul 02 '15 at 08:52 AM

I just did a test with settings false-false-false on both input events and it works fine. Are you sure you actually possess this gatling gun actor? Did you add some printstring attached to it to see if the error might be elsewhere?

sidenote: if your actor should have movement, I suggest you use Character as parent instead of Pawn, it makes things much easier.

avatar image Harlyk Jul 02 '15 at 10:02 AM

Hey Enlo,

thx a lot for answering, I try debugging instead of printstring cause I´ve got 2 displays. There are no actions while I´m pressing left mouse button.

the gatling is a pawn blueprint and I added this blueprint at my player character blueprint. So the player charakter is possess not the gatling blueprint.

The gatling gun will not have a movement it just rotate to mouse position and then there should be some shooting at the end.

The big plan is to generate many player character with diffrent weapons, the aiming and shooting should be handeled in the weapon itself.

But in the weapon blueprint no input action will fire.

avatar image Harlyk Jul 02 '15 at 02:14 PM

In meantime I get some further informations.

It looks like that my gatling pawn blueprint that is added in my player_character don´t get any inputs because my player_character is possessed the gatling needs to be possessed to get any inputs and this isn´t the way it should work.

I really wondering, is it really impossible to give 2 blueprints(player_character and pawn) an input action at the same time ?

I can´t programming all this diffrent weapons in the payer_charakter or controller, I just want to have the ligic into the weapon blueprint.

Is there any way to get this working ?

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

1 answer: sort voted first

Found the answer, the weapon has to be a actor blueprint not a pawn blueprint.

Thx a lot for your help Enlo

more ▼

answered Jul 02 '15 at 07:54 PM

avatar image

Harlyk
10 8 8 9

(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