Forum

> > CS2D > General > editing map: one time use only button
Forums overviewCS2D overviewGeneral overviewLog in to reply

English editing map: one time use only button

6 replies
To the start Previous 1 Next To the start

old editing map: one time use only button

owiowais
User Off Offline

Quote
how can i make button in editing a map which could be used one time only after using it disappear
i hav seen these types of button i others map but cant find how to make it
can someone please tell me how to do that
edited 1×, last 08.06.09 07:54:55 pm

old Re: editing map: one time use only button

DC
Admin Off Offline

Quote
give the button a name and let it trigger it self:

• button
> name-field: mybutton
> trigger-field: mybutton, somethingelse

• another entity you want to trigger
> name-field: somethingelse

old Re: editing map: one time use only button

owiowais
User Off Offline

Quote
DC has written
give the button a name and let it trigger it self:

• button
> name-field: mybutton
> trigger-field: mybutton, somethingelse

• another entity you want to trigger
> name-field: somethingelse


awesome very very thanks u r gr8

old Re: editing map: one time use only button

shadowski
User Off Offline

Quote
trigger editor is a liitle bit different then turning off the button. i will give you an example.

I want to create an automatic door that can be only opened one every 60 sec.

1.I create DYN_WALL and name it door, than i create button that triggers "door" and triggers delay(it triggers door for automatic closing every 10 sec). Than i push the button and the door opens and after 10 sec closes, looks ok but what about if we press the button (door opens) and push the button again not waiting 10 seconds, the door will close and after 10 sec will open, so that is messed up.

2.Lets create DYN_WALL and named it again door, then create button with name: button and trigger:button,delay.
Create entity Delay name:delay trigger:button.

Now when we will press the button, the button itself will be disabled and the door will open, after 10 the button will be triggered and it will be functiong ok.

See nothing special
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview