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 lock player rotation(Not camera)

I have a character that uses a sword and shield, so I made it so when he swings or does an action he cant move in any direction and soon after the action ends movement is restored. The issue is that the character can still rotate.How would I go about stopping their rotation too?

Product Version: UE 4.10
Tags:
more ▼

asked Oct 25 '16 at 03:49 PM in Blueprint Scripting

avatar image

The Alpha Maiestro
22 4 6 7

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

2 answers: sort voted first

There's a similar question here. Basically , you want to call DisableInput on player controller on animation start, and EnableInput on Animation End. I would use AnimNotify for this personally.

more ▼

answered Oct 25 '16 at 04:47 PM

avatar image

Holybreath
383 10 7 19

avatar image Night Watcher Oct 25 '16 at 08:41 PM

U can try to temporary disable use controller Yaw rotation in the player blueprint default settings

avatar image twalk1776 Mar 08 '17 at 02:33 AM

So I've tried this, but it messes with root motion. I was using it on a rolling animation after landing and found that my character rolls out of his capsule and then bounces back in once the animation completes. Any other ideas?

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

Thanks this helps a lot.

more ▼

answered Oct 25 '16 at 08:45 PM

avatar image

The Alpha Maiestro
22 4 6 7

avatar image Holybreath Oct 26 '16 at 07:19 AM

please mark as answer, if it helped you :)

(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