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"

How can i have the top number of my dice to be shown on my hud? and/or how can i use the number to define damage and other points on ue4?

I have the Rin dice pack from the marketplace and im creating a RPG, i need to have the dice as a randomizer for many actions, so how can i have the top number of the dice show in the hud and how to use the randomized number to define something: like as damage and defence points and what enemies are approaching.

Product Version: UE 4.16
Tags:
more ▼

asked Jul 16 '18 at 07:04 PM in Using UE4

avatar image

Hazeblade
1

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

1 answer: sort voted first

I'm not familiar with the rin dice pack. Hopefully it has a convenient variable or function that just tells you which number is on top but if not you will probably have to measure one of the following:

Forward Vector Right Vector Up Vector World Rotation.

Look at the dice mesh assets and see which way the X arrow on their pivot is directed. This usually will tell you what direction the Forward Vector will be pointing. So if the die tumbles to where that face would be pointing upward then your forward vector would probably be close to 1 in the Z axis, and 0 in the others.

more ▼

answered Jul 17 '18 at 12:59 AM

avatar image

mightyenigma
3.7k 18 23 20

(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