Forum

> > CS2D > Scripts > Help with Trigger_use
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Help with Trigger_use

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Help with Trigger_use

Rino
User Off Offline

Zitieren
I need help on... how to trigger a "server action" to press a Trigger_use?

I want expert help to understand how to do

√ Thanks! us

alt Re: Help with Trigger_use

Yasday
User Off Offline

Zitieren
You should probably describe your problem/question better.
If you meant calling a function when someone triggers a button, then use the hook "trigger" or better, use the "usebutton" hook.
1× editiert, zuletzt 06.04.11 22:20:10

alt Re: Help with Trigger_use

Seekay
Reviewer Off Offline

Zitieren
place trigger_use on map

name: A
trigger B:

Choose your Button.

place func_gameaction on map

name: B
trigger: A

Choose your action.

Thats all!

alt Re: Help with Trigger_use

EngiN33R
Moderator Off Offline

Zitieren
@Kevin He didn't mean a game action.

@topic No idea what the hell are you talking about, but if I'm right and you want to know how to execute some script on button press, then Yasday answered the question.

alt Re: Help with Trigger_use

Precel97
User Off Offline

Zitieren
1
2
3
4
5
6
7
triggerx="x"
addhook("serveraction","my_sa")
function my_sa(id,act)
if (act==1) then
parse("trigger "..triggerx)
end
end
Here!
x - put there name of trigger
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht