Author Topic: I can't find out what's wrong with this event.  (Read 801 times)

so i have 18 vehicle spawns and other buttons. each of the buttons changes the type of bot. what i want to do is that every time i hit a button, all of the buttons disappear until all of the bots are dead.

on the spawn bricks i have these events

onbotspawn > self > modvariable > minigame > alive > set > 0

onbotkilled > self > modvariable > minigame > alive > add > 1

onvariableupdate > self > ifvariable > [<var:minigame:alive>]  >=  [18] 5 5

onvariabletrue > named brick: buttons > setproperties > [X] [X] [X]


and on the buttons:

(bot events go here)

onactivate > named brick: buttons > setproperties > [  ] [  ] [  ]


ive tried many things but the buttons won't appear again.

ya, I can't understand this, either!

WHY THE forget DOES EVERYONE USE THAT loving SET PROPERTIES COMMAND FOR DISSAPEAR
SERIOUSLY
disappear [-1] VANISH
disappear [0] APPEAR

I honestly don't know how onVariableUpdate works. I would suggest an event on every brick, 'onbotspawn' that checks the value of the alive variable.

WHY THE forget DOES EVERYONE USE THAT loving SET PROPERTIES COMMAND FOR DISSAPEAR
SERIOUSLY
disappear [-1] VANISH
disappear [0] APPEAR

sry i didn't know you could do that

the variableupdate is triggered when a variable changes.
« Last Edit: January 22, 2012, 08:18:14 PM by Dante77 »

WHY THE forget DOES EVERYONE USE THAT loving SET PROPERTIES COMMAND FOR DISSAPEAR
SERIOUSLY
disappear [-1] VANISH
disappear [0] APPEAR

I honestly don't know how onVariableUpdate works. I would suggest an event on every brick, 'onbotspawn' that checks the value of the alive variable.
some reason that didn't work



Schedules limit?
my schedules limit is 500 and i didnt get any too many events at once message

Bots can have variables?

Bots can have variables?
its possible to do bot events with the self target
for example:

onActivate > Self > SetBotWeapon > Longrange > Gun


Uh, to my knowlege that event goes under 'Bot'

And although events can apply to them it doesn't guarantee that they can support variables