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. 

Kismet percentage returning 0 at 100%

I have the strangest issue with the kismet library percentage tool. I'm using it to determine the status of the energy bar for a game. Everything works fine, at least until the Energy reaches 100%. When it does, the percentage tool returns 0 instead of 100. Did anyone else have the same issue?

Getting Percentage Percentage rising Percentage dropped at 0 FNAR

Product Version: UE 4.14
more ▼

asked Mar 09 '17 at 02:33 PM in Blueprint Scripting

avatar image

DAck Games
30 2 3 7

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

1 answer: sort voted first

Hi Beren89,

If you hover over the % node you will see it is actually for Modulo Operations (which finds the reminder after division) and not for handling straight percentage calculations.

more ▼

answered Mar 20 '17 at 08:19 PM

avatar image

41.1k 1009 183 493

avatar image DAck Games Mar 24 '17 at 04:01 PM

Alright, I see. Is there any way to do straight percentage calculations as the one I need or I need to make it manually?

And thanks for the link, the modulo operation was something completely extraneous to me =)

avatar image TJ V ♦♦ STAFF Mar 29 '17 at 04:21 PM

Yeah, you would need to do it manually. There is an 'AsPercent' node that converts a float to a percent in text form but as for percentage calculations, I couldn't find much that would help there.

avatar image DAck Games Apr 03 '17 at 11:24 PM

Ok, thank you!

(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