Blockland Forums > Help
VCE Variable HELP!
lightupman:
Well,I used to be able to use a variable that would check if the left mouse button was clicked down.Is it a 3rd party add-on which extended the variable list or what? If you guys could tell me the
variable it would be much appreciated.
Also,is there a way to check for other buttons are being held down? (such as n or something,I don't know.)
Gen. Hothauser:
Well, I have t tried it, but there may be a default VCE variable replacer.
Try this:
--- Code: ---[0] [x] [0] [Onactivate] [Self] [VCE_Ifvalue] [<var:br:activate>] [==] [1] [1 1]
[1] [x] [0] [Onvariabletrue] [Self] [Setcolor] [Any other color besides the current color of the brick]
--- End code ---
If it turns the other color, then use that variable replacer. If not, then replace the (br) in the example to (cl) or (pl), either of those may work. None of these may work, in which case we need this, as it would be another good VR.
For other keys, it couldn't work, as the key action is acting upon the player, not any brick. However, V21 made your paint key activate, just like default left mouse button, as well, in which case it would do the same as a mouse click.
Goth77:
I think the value is on the player if I remember correctly.
TheArmyGuy:
It's <var:pl:firing>
TheArmyGuy:
--- Quote from: lightupman on December 29, 2012, 01:23:16 PM ---Also,is there a way to check for other buttons are being held down? (such as n or something,I don't know.)
--- End quote ---
Noedit
No, there isn't, but you can detect spacebar (<var:pl:jumping>) and right mouse button (<var:pl:jetting>) unless they're remapped in which case it would be the remapped button.