[Help] Random Weapon Held (AI)

Results 1 to 2 of 2
  1. #1
    m70b1jr#9501 m70b1jr is offline
    MemberRank
    May 2013 Join Date
    North CarolinaLocation
    862Posts

    [Help] Random Weapon Held (AI)

    So, i'm trying to make bandit AI hold a random weapon, as of now ALL AI hold tars.
    Code:
    guardGear6 = 101173;
    Is there some type of random code i can use to make it a 50/50 thing?


  2. #2
    Enthusiast batman1 is offline
    MemberRank
    Mar 2014 Join Date
    34Posts

    Re: [Help] Random Weapon Held (AI)

    switch(u_random(2)) {
    default:
    case 0: guardGear6 = 101173;
    case 1: guardGear6 = 101082
    };



Advertisement