Blockland Forums > Help

How to give random weapons on spawn using VCE?

Pages: << < (2/2)

phflack:

input>player>VCE_modvariable[weapon][set][0]
input>player>VCE_modvariable[weapon][random][2]
input>player>VCE_ifvariable[weapon][==][0][3 4]
onvariabletrue>player>additem[gun]
onvariablefalse>player>VCE_ifvariable[weapon][==][1][5 6]
onvariabletrue>player>additem[rocket launcher]
onvariablefalse>player>additem[sword]

that would be a random chance between a sword, rocket launcher, and a gun

gr8dayseth:

Thanks, it works.

Pages: << < (2/2)

Go to full version