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"

float is still set after a false on branch

Hello Santa,

I have an external float curve which I get the value from in my character BP as shown below. This happens after a branch. If the branch returns false I would like the float value to remain the same, instead of flowing back to its initial value, which currently is the case for some reason I can't figure out. Here is a screenshot of the problem variable, its the only place in the blueprint where it is set. Down the chain there are some delta time, float interpolations, could those be affecting the beginning of the chain, or keep the whole chain active even after its not supposed to be executed?

All I want is for the slope multiplier to remain at the set value after the conditions of the branch before it are no longer met.SlopeMultiplierResetsItselfLoL

P.S. If I set the variable to a stored copy of itself which I make at the end of the execution chain, it still successfully returns to its base value, like what the Rudolf is going on?

Product Version: UE 4.10
Tags:
buggerall.png (196.2 kB)
more ▼

asked Jan 09 '16 at 04:27 PM in Blueprint Scripting

avatar image

Polivantage
66 1 6 9

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

1 answer: sort voted first

Hi man , i am sure that your event once fired just check your IF , and if go false, he jump out of the Whole event. Nothing in the true event can change the first part. When running false, your event should not do anything to your variables.

May i figured out what you done wrong.... Out of the IF pin out the false and assign your variable again """like the float value to remain the same"".

more ▼

answered Jan 10 '16 at 03:44 PM

avatar image

Est_engine
1.2k 58 12 62

avatar image Polivantage Jan 11 '16 at 11:16 AM

Hey thanks for the reply, I have tried to set it to a copy made at the end of the whole chain and the exact same variable,- again, but still it interpolates(why?) back to being 1.000395 or something, its base value is 1 and it also goes to 1.000395 or something if I stand on a steep slope. So basically, if the chain returns false no change has to be made to the variable, but still it goes back to about 1, how?, shall I screenshot the rest of the chain? it are all only max walk speed interpolation further on which de[end on this slope variable...

avatar image Est_engine Jan 11 '16 at 02:02 PM

Duplicate your actor if you can and delete all not necessary part. if you dont get what is wrong post a screenshot of the clean blueprint.

avatar image Polivantage Jan 11 '16 at 04:48 PM

Thank you, I finally realized what I did wrong, can't believe I've been this blind, instead of an OR, I now by using AND get the desired behaviour.slope

slope2

slope01.png (231.4 kB)
slope02.png (294.0 kB)
(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