| Blockland Forums > Help |
| How to give random weapons on spawn using VCE? |
| (1/2) > >> |
| gr8dayseth:
I searched this, and it gave me one answer, but it didn't work. |
| phflack:
detect when the player is spawned in some way - walking over a brick right after the spawn tends to work well then generate a random variable, setting a variable to the lower value and then using random on it to the upper limit then check that variable for it's value, giving a different weapon for each value |
| Night Fox:
--- Quote from: phflack on May 26, 2013, 03:32:32 AM ---detect when the player is spawned in some way - walking over a brick right after the spawn tends to work well then generate a random variable, setting a variable to the lower value and then using random on it to the upper limit then check that variable for it's value, giving a different weapon for each value --- End quote --- that's what I was thinking. my choice for the brick would be a zonebrick, though, because onPlayerEnterZone is superior imo to onPlayerTouch |
| gr8dayseth:
Thanks, but can someone give me an event example or something? I have no idea how to use this. |
| Night Fox:
--- Quote from: gr8dayseth on May 26, 2013, 04:43:36 AM ---Thanks, but can someone give me an event example or something? I have no idea how to use this. --- End quote --- if nobody's done it when I get home later, I'll show you |
| Navigation |
| Message Index |
| Next page |