Author Topic: VCE question.  (Read 578 times)

How do I make it so I only have to click a brick once and no matter where I am if I right click I can make something happen? I knew how to do it at one point but I forgot how to.



[sarcasm]Woooow. Your so helpful.[/sarcasm]

What? That;s it. VCE and relays. That's it...


Dumbass.

I meant what events do I use and in what order.

Code: [Select]
[X] 0 [0] onActivate -> Self -> VCE_stateFunction -> [<var:cl:name>] [ ]
[X] 1 [0] onActivate -> Self -> VCE_callFunction -> [SoulStealer] [ ]
[X] 2 [33] onVariableFunction -> Self -> VCE_callFunction [SoulStealer] [ ]
[X] 3 [0] onVariableFunction -> Self -> VCE_ifValue -> [<var:pl:jetting>] == [1] [ ]
[X] 4 [0] onVariableTrue -> Client -> centerPrint -> [Insert events here]

This is as short as it gets.

Events 0 to 2 set up a relay that only you can use. I use this method as opposed to checking if it's use, then calling the function. Instead, I state the function as a variable, and call the output of the variable that only the allowed players would have. In this case, it would be your name.

Event 3 checks for Right-Clicking.

Event 4 is the "do this" filler.