| Blockland Forums > General Discussion |
| I can't find out what's wrong with this event. |
| (1/3) > >> |
| Dante77:
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. |
| I-have-not:
ya, I can't understand this, either! |
| Lugnut:
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. |
| Dante77:
--- Quote from: Lugnut1206 on January 22, 2012, 08:04:58 PM ---WHY THE forget DOES EVERYONE USE THAT loving SET PROPERTIES COMMAND FOR DISSAPEAR SERIOUSLY disappear [-1] VANISH disappear [0] APPEAR --- End quote --- sry i didn't know you could do that the variableupdate is triggered when a variable changes. |
| I-have-not:
--- Quote from: Lugnut1206 on January 22, 2012, 08:04:58 PM ---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. --- End quote --- some reason that didn't work |
| Navigation |
| Message Index |
| Next page |