Author Topic: How do i use toggle event enabled?  (Read 678 times)

how do i use toggle event enabled, so when you click it first it sais "blah blah has disappeared" then blah blah disappears, when you click it again it sais "blah blah has now reapeared" then blah blah reappears! this is just an example i though of. please help!


0 [c] OnActivate > Client > Centerprint > Blah blah blah has disappeared
1 [c] OnActivate > Self > Disappear > -1
2 [ ] OnActivate > Client > CenterPrint > Blah blah blah has reappeared
3 [ ] OnActivate > Self > Disappear > 0
4 [c] OnActivate > Self > toggleeventenabled > [ 0 1 2 3 ]

[c] Means a checked box.

0 [c] OnActivate > Client > Centerprint > Blah blah blah has disappeared
1 [c] OnActivate > Self > Disappear > -1
2 [ ] OnActivate > Client > CenterPrint > Blah blah blah has reappeared
3 [ ] OnActivate > Self > Disappear > 0
4 [c] OnActivate > Self > toggleeventenabled > [ 0 1 2 3 ]

[c] Means a checked box.

thanks your so awesome



Surely if you click it and it disappears you can't make it reappear by clicking it because it's not raycasting...
0 [c] onActivate -> Self   -> setRendering       [ ]
1 [c] onActivate -> Self   -> setColliding       [ ]
2 [c] onActivate -> Client -> centerPrint        ["Disappeared.",1]
3 [ ] onActivate -> Self   -> setRendering       [c]
4 [ ] onActivate -> Self   -> setColliding       [c]
5 [ ] onActivate -> Client -> centerPrint        ["Reappeared.",1]
6 [c] onActivate -> Self   -> toggleEventEnabled ["0 1 2 3 4 5"]

Surely if you click it and it disappears you can't make it reappear by clicking it because it's not raycasting...
0 [c] onActivate -> Self   -> setRendering       [ ]
1 [c] onActivate -> Self   -> setColliding       [ ]
2 [c] onActivate -> Client -> centerPrint        ["Disappeared.",1]
3 [ ] onActivate -> Self   -> setRendering       [c]
4 [ ] onActivate -> Self   -> setColliding       [c]
5 [ ] onActivate -> Client -> centerPrint        ["Reappeared.",1]
6 [c] onActivate -> Self   -> toggleEventEnabled ["0 1 2 3 4 5"]

lol, you have a good point... and if you can't see it, hard to aim?

ok thanks i got what i need!