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"

Increase a value by pushing a key

Hi there. I got a Light in my level and i'd like to increase his intensity every time I press a key. Actually it work but only once i can't spam the button and increase his intensity more and more. What can I do please ?

Product Version: UE 4.10
Tags:
more ▼

asked Mar 25 '16 at 07:28 PM in Using UE4

avatar image

theAVALONstudio
1 1 2 1

avatar image Black Phoenyx Mar 25 '16 at 07:37 PM

Can you post a screenshot of the BP?

avatar image theAVALONstudio Mar 26 '16 at 09:10 AM

I can't before tonight but actually i've a Press E event that is linked to Set intesity of my light. I've made a float variable wich refer to my initial light intensity and i linked this variable to a float + float one and that's linked to my set intensity. Don't know if you'll understand because it's very confusing writted like that :D

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

1 answer: sort voted first

Ok, to add to the intensity over and over again you need to get the light's intensity each time and then add to it each time. Something like this:

alt text

addonintensity.png (66.5 kB)
more ▼

answered Mar 26 '16 at 01:47 PM

avatar image

Black Phoenyx
4.1k 165 9 170

avatar image theAVALONstudio Mar 27 '16 at 03:29 PM

What's the add on Intensity pls ?

avatar image Black Phoenyx Mar 27 '16 at 03:32 PM

That's the amount you want to add each time

avatar image theAVALONstudio Mar 27 '16 at 03:37 PM

Oh ok thanks you it works. Thank you very much

avatar image Black Phoenyx Mar 27 '16 at 04:03 PM

Great, don't forget to mark this as answered/resolved.

(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