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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Horror Game: Character Movement

So I want to know how I can make it so the character can only run (which i have the max speed done for this already) during specific times in the game. I have already done the event graphs for Running and Walking. I am a beginner so please make this simple as possible. It's also fine if it is complicated.

Product Version: UE 4.10
more ▼

asked Nov 24 '15 at 11:40 PM in Using UE4

avatar image


avatar image erinacea Nov 25 '15 at 07:20 AM

Not entirely sure what you mean, but can't you simply clamp the speed to a different maximum value when the player is not allowed to run?

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

1 answer: sort voted first

If I understand correctly you have moments in your game when your character is running by default. Not sure how you solved movement in your game but I've tweaked FirstPerson Shooter character blueprint to give you example how you can achieve what you want:

alt text

It's not perfect, but it gets the job done. Now via setting variable Always run to true/false you can affect player speed regardless of user input.

Edit: Assumed character movement: walking (default), running (left shift)

more ▼

answered Nov 25 '15 at 07:21 PM

avatar image

1 1 2 4

(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