Author Topic: VCE Variable HELP!  (Read 828 times)

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.)

Well, I have t tried it, but there may be a default VCE variable replacer.

Try this:

Code: [Select]
[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]

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.

I think the value is on the player if I remember correctly.


Also,is there a way to check for other buttons are being held down? (such as n or something,I don't know.)
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.

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.
What? All of this is wrong.
<var:pl:firing> returns 1 as long as you hold down your left mouse button
And no, <var:pl:jumping> and <var:pl:jetting> doesn't detect the button, it just detects weather you're doing said action.

What? All of this is wrong.
<var:pl:firing> returns 1 as long as you hold down your left mouse button
And no, <var:pl:jumping> and <var:pl:jetting> doesn't detect the button, it just detects weather you're doing said action.
check if the left mouse button was clicked down
Uhm that is sort of what he asked for.
Also, I am pretty sure it still returns 1 inside a minigame with no jet-players presing RMB.

Code: [Select]
0. [0] onActivate -> Self -> fireRelay
1. [33] onRelay -> Self -> fireRelay
2. [33] onRelay -> Self -> ifValue [<var:pl:firing>] [==] [1] [3 3]
3. [0] onVariableTrue -> Player -> spawnProjectile -> pong

Uhm that is sort of what he asked for.
Also, I am pretty sure it still returns 1 inside a minigame with no jet-players presing RMB.
Not my point, my point was that vce doesn't do what you said.

Also, I am pretty sure it still returns 1 inside a minigame with no jet-players presing RMB.
Yes it does.