Forum

> > CS2D > Scripts > Help with Trigger_use
Forums overviewCS2D overview Scripts overviewLog in to reply

English Help with Trigger_use

4 replies
To the start Previous 1 Next To the start

old Help with Trigger_use

Rino
User Off Offline

Quote
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

old Re: Help with Trigger_use

Yasday
User Off Offline

Quote
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.
edited 1×, last 06.04.11 10:20:10 pm

old Re: Help with Trigger_use

Seekay
Reviewer Off Offline

Quote
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!

old Re: Help with Trigger_use

EngiN33R
Moderator Off Offline

Quote
@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.

old Re: Help with Trigger_use

Precel97
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview