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. 

Sprint/Stamina Mechanic Trouble

Could anyone take a look at this blueprint and tell me what looks off?

alt text

Product Version: Not Selected
staminamechanic.png (321.9 kB)
more ▼

asked Apr 05 '15 at 09:25 AM in Blueprint Scripting

avatar image

6 5 8 8

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

1 answer: sort voted first

In the upper part, you must add the 2.5 to the current max stamina,not to zero and set that to the new Stamina. Otherwise, max stamina will stay at 2.5 or -2.5.

In Sprint control, is it normal, that the 2 branches for checking, if sprinting is available aren't connected to an execution graph? You can add them to the event tick graph to check every tick, if sprinting is available. When they aren't connected to an execution graph, they aren't gonna used

more ▼

answered Apr 05 '15 at 11:03 PM

avatar image

48 3 6 9

avatar image Dwabii95 Apr 05 '15 at 11:05 PM

You can also optimize the second branch in sprint control: if you replace == with <=, then you can remove the second branch and add to false CanSprint=true , because when stamina isn't <= 0 , it is automatically > 0 and therefore you can sprint.

(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