Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help RandInt and Switch Statements.
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#2
RE: RandInt and Switch Statements.

switch(RandInt(min, max))
{    
    case min:    
    {    
    }    
    case max:    
    {    
    }
    case ((min+max)/2):  
    {    
    }
}

It's quite easy really.
Change min and max with your own values, of course. Switch the case values with the values you want to check (1, 3, 4.56, hope you got me)
(This post was last modified: 04-13-2013, 02:23 PM by ClayPigeon.)
04-13-2013, 02:02 PM
Find


Messages In This Thread
RE: RandInt and Switch Statements. - by ClayPigeon - 04-13-2013, 02:02 PM
RE: RandInt and Switch Statements. - by NaxEla - 04-13-2013, 05:08 PM
RE: RandInt and Switch Statements. - by Kreekakon - 04-13-2013, 05:23 PM
RE: RandInt and Switch Statements. - by NaxEla - 04-13-2013, 05:48 PM
RE: RandInt and Switch Statements. - by Kreekakon - 04-13-2013, 05:57 PM



Users browsing this thread: 2 Guest(s)