Author Topic: How can you make One Click only with events?  (Read 621 times)

I was wondering if someone clicks a button it will say "Ohai" and when it click it again it will say,  "DIE!" and it will keep saying "DIE!" How can you do it? How can you do it just for the client and not everyone?


Code: [Select]
  Delay:     Enabled:     Input:            Target:     Output:                    Par.   
1  0             Yes            onActivate     Client        Centerprint             Ohai
2  0             Yes            onActivate     Self           SetEventEnable       1            no
3  0             Yes            onActivate     Self           SetEventEnable       3            yes 
4  0             No             onActivate     Client        Centerprint               DIE!
 

Just for the client?
You'll need Variable Events V.3 for this to work.

Quote
Event   Delay   Enabled   InputTarget   OutputParameters
00YesonActivateSelfifVariableClient, clickedohaidie, Equals, 0
10YesVariableTrueClientCenterPrint   Ohai
20YesVariableTrueClientsetVariableclickedohaidie, 1
30YesVariableFalse   ClientCenterPrintDIE!

As I press SEND>> It deletes some of the events.