Forum

> > CS2D > Scripts > Use hook, null value
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Use hook, null value

23 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: Use hook, null value

HESY
User Off Offline

Zitieren
user Rainoth yes, timer not work, but I not understand what means 'third timer parameter'

Zitat
So you want to disable buttons for a while and then re-enable them?

not all buttons, only which player used

If the bug is not corrected, the entire project can be thrown in the trash

alt Re: Use hook, null value

Zeik
User Off Offline

Zitieren
It would be so much easier if people wrote what they are trying to do instead of just throwing a bunch of meaningless code.

Tell me what you are trying to do and maybe I will help you. I can't waste time just trying to guess what you're trying to do.

alt Re: Use hook, null value

Rainoth
Moderator Off Offline

Zitieren
@user HESY: That's exactly what my code does. BUT you have to understand that trigger control works by passing what NAME of trigger you have to use. In other words, if you have triggers with the same name, they will all get triggered. It's actually a convenience in most cases, since you disable all triggers you no longer need. However, if you want to disable separate triggers, you'll have to use different names for them.

I understand that you have triggers:

"debug" x 10
and clicking one of them will disable all of them for a while.

You'll have to set up:
"debug0"
"debug1"
"debug2"
"debug3"
...
"debug8"
"debug9"

and define a function for each of them (what function does can be the same).

Hope that helps.
Cheers.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht