Announcement

Collapse
No announcement yet.

Random result function?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Random result function?

    Hey Guys,

    im searching a function to randomise a result.
    E.g. A player choose a number from 1 to 3 and for each number there are 3 different ways to continue which are choosen randomly.

    Greets

    #2
    Perhaps a Random float (0-2 (3 total))-> Switch node?
    Last edited by Duwayne; 09-04-2015, 01:07 PM.

    Comment


      #3
      Function Random Result, Input Float or Int (make default to be 3), plug Input to Max of Random Float/Int in Range, put 1 in Min, Return Output has result from Random.

      Comment


        #4
        Click image for larger version

Name:	RandomSelector.JPG
Views:	1
Size:	95.0 KB
ID:	1087021

        Just for you, loaded up Unreal.

        Comment


          #5
          Adding to what Yggdrasil posted, you could hook that final integer up to a 'Switch on Int', which is what will let certain execution pins fire based on the integer.
          Marketplace Assets

          Advanced Mobile Input: Marketplace Page | Support Thread ――― Easy Input Remapping: Marketplace Page | Support Thread
          Multiplayer Blueprint Chat System: Marketplace Page | Support Thread ――― Closing Credits System: Marketplace Page | Support Thread
          Minesweeper Template: Marketplace Page | Support Thread ――― Maze Creator: Marketplace Page | Support Thread

          Comment

          Working...
          X