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"

How to use Character Controller on Pawn

I'm for days struggling to make this works, if I do the same, but using a Character class everything works fine, but when I use a Pawn class, both Left and Right inputs are fired, without I press any key, and I can't find a way to just make the canoe (pawn) turn to right or left. Anyone know how to use Character Controller on Pawn?

Below some screenshots from the bp's.

Pawn input alt text

Below is how I possess the Pawn from the Level Blueprint: alt text

And here is what I do to move the canoe forward: alt text

Product Version: UE 4.20
Tags:
more ▼

asked Oct 07 '18 at 01:03 PM in Blueprint Scripting

avatar image

Rgiz
65 7 14 18

avatar image ThompsonN13 Oct 07 '18 at 02:26 PM

it has nothing to do with using the controller, the controller is working fine. the issue your having is that axis events work on tick and they fire even when the input is not pressed. usually you would have the axis value plugged into something thats adds an offset. so when the input is not pressed you would be adding 0 offset, then when input is pressed the axis value becomes 1 and your adding 1 to the offset.

what you can do is to add some flow control to your script and it should work as you intend. for instance try connecting a not equal node to the axis value and make the second value 0, then connect that to a branch node, then the branch true pin to the print string you have. this will make it so the print only gets fired when the button is pressed.

avatar image Rgiz Oct 10 '18 at 10:33 PM

Ah, now I got it, thanks ThompsonN13 :)

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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