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"

Resuming Character Movement

Hello guys,

I'm currently stuck with a simple thing that I know I'll feel dumb once someone gives me a hint or answer to but I am stopping the character's active movement to simulate a "stunned" state. this allows me to knock the character back a bit, he's suppose to stay still then resume his movement.

Right now I noticed blueprint has a Stop Active Movement node but not a Resume Active Movement node, or that I can find. I was wondering if you guys can help me out.

alt text

Product Version: UE 4.8
Tags:
more ▼

asked Jun 25 '15 at 01:26 AM in Blueprint Scripting

avatar image

Demoneyejin
73 4 9 22

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

4 answers: sort voted first

I've just found out about three nodes which should solve your problem - Set Ignore Move Input, Set Ignore Look Input and Reset Ignore Input Flags (I work in 4.8.3). You will find screenshot in the topic below:

https://answers.unrealengine.com/questions/248709/how-can-i-trigger-a-camera-with-bp-switch.html https://answers.unrealengine.com/storage/temp/53035-ue4_cameratest_2.png

more ▼

answered Aug 06 '15 at 02:20 PM

avatar image

Nox_A15
231 13 130 180

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

When you Disable Movement component, it is really just setting movement mode to none. If you set movement mode and pick walking or whatever it was, it is the antithesis of the original disable command. Hope that helps.

more ▼

answered Sep 03 '16 at 12:20 AM

avatar image

Mock Up Games
6 1 3

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

this is how ive always done it.

create a boolean called "disable movement" in your movement access or really any input you want disabled during the "stun state" just put a branch there that says if disable movement is true, do nothing, otherwise proceed. You can get in the habit of adding it to any new inputs you'd want disabled.

Whenever you want to "stun" the character, just set disable input to true. Nothing will work. Then delay for 4 seconds and set it to untrue.

I have a function called "DisableOffDelay". After setting disable to true, I immediately run a timer with a time of however long the stun is and then the timer automatically takes the disable movement off with the function. Saves the thread from having to delay processing(using delay node). Instead it completes and the timer then runs the delay off.

You can couple this with a small Launch Character to set them back and stun them. Also good for allowing animations to play. etc..

good luck.

example

disablemovement.png (142.1 kB)
more ▼

answered Jun 25 '15 at 03:04 AM

avatar image

thankstipscom
588 30 27 58

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

Hey guys, I ran into the same challenge as you did, and I have got an alternative.

Instead of using the "Disable Movement" function I found out that using the "Deactivate" and "Activate" pair of functions on the Character Movement component produced the desired effect. alt text

Best

more ▼

answered Jun 12 '16 at 04:07 PM

avatar image

Mimicry Games
47 2 4 6

(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