Author Topic: Bot Events - Weapon Randomizing  (Read 2364 times)

Whenever I create a bot and give it multiple events for different weapons, such as...

OnBotSpawn--Bot--SetWeapon [ Gun ]
OnBotSpawn--Bot--SetWeapon [ Rocket Launcher ]
OnBotSpawn--Bot--SetWeapon [ Guns Akimbo ]

I would expect it to randomly choose one of the weapons to give the bot each time it spawns, but instead it just picks the bottom weapon to give it each time.

So is it possible to make that randomize weapons?



Will test this.
I had just tried this, I cannot event OnBotSpawn--Bot--setRandomItem

It works for my player but I can't assign it to certain weapons.

Yeah you can't assign it to certain weapons.
the only other way is to make a randomization system with events to toggle different kinds of
OnBotSpawn -- Bot -- setWeapon

Yeah you can't assign it to certain weapons.
the only other way is to make a randomization system with events to toggle different kinds of
OnBotSpawn -- Bot -- setWeapon
I tried doing that, I can't get my head around doing it I just can't keep track of what each enable/disable event is even doing.

I tried doing that, I can't get my head around doing it I just can't keep track of what each enable/disable event is even doing.
what's your events

what's your events
I cleared them after giving up, but I think it was something like....
[ ][0] OnBotSpawn--Bot--SetWeapon [ Gun A]
[ ][1] OnBotSpawn--Bot--SetWeapon [ Gun B]
[ ][2] OnBotSpawn--Bot--SetWeapon [ Gun C]
[Enabled] [5] OnBotDeath--Self--setEventEnabled [0 1 2] [ Disable ]
[Enabled] [4] OnBotSpawn--Self--SetEventEnabled[6 7]
[ ] [6] OnBotSpawn--Self--SetEventEnabled [ 0 ] [Enable]
[ ] [7] OnBotSpawn--Self--SetEventEnabled [6 7] [Disable]

That is about when I gave up.

I cleared them after giving up, but I think it was something like....
-stuff-
That is about when I gave up.
try making a stack of plates like...

Quote
88888888
[8x8 plate. OnRelay -- Self -- spawnProjectile 0 0 -1 [projectile, doesn't really matter. sends it downwards
to the 33322333]

33322333
[3x8, 2x8, and 3x8 plates. Each of these should contain OnProjectileHit -- [Botspawnbrick] -- SetEventEnabled [blah blah blah. the numbers should be different for each brick
to enable only 1 of your 3 weapons and disable the rest]

sending a relay to the 8x8 plate spawns a projectile from a random place in the 8x8 plate,
hitting one of the 3 bricks, and enabling and disabling certain events.

this might work so good luck
it's pretty complicated

You know this is easily done with VCE, right?

try making a stack of plates like...

sending a relay to the 8x8 plate spawns a projectile from a random place in the 8x8 plate,
hitting one of the 3 bricks, and enabling and disabling certain events.

this might work so good luck
it's pretty complicated
I remember doing that before, I completely forgot about it until now.

You know this is easily done with VCE, right?
yeah like all of us knows how to do that
we might as well dismiss every event help phrase with "this is easily done with VCE"

"how do i make my own doors? use vce"
"how do i make different music play after another? use vce"

just quit it