HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making a button

08-05-2003, 04:26 AM#1
Izidkiel
I want it so that everytime a person press the button "b" it will create a dialog asking what the person wants to buy. Im already done the dialog part so I only need help on the button.:(
08-05-2003, 05:22 AM#2
Draco
You cannot really use the 'b' for this, as their is no event, but you can use the Player - Keyboard event for them if they press one of the arrow keys.
08-05-2003, 05:31 AM#3
Izidkiel
Now I have another problem.:( I want it so that you can only do that at a certain region.emote_confused
08-05-2003, 06:02 AM#4
Draco
Just use a Boolean condition. If unit X is in region Y equal to true. Then the following actions only occur when unit X is in region Y.
08-05-2003, 07:46 AM#5
Izidkiel
Okay, thx alot for the help.

*Edit

Now I have ANOTHER problem. Okay now I made it so its the esc button for buying. But the first time you press it works fine. But when you press it more then once it will create doubles. For example.

First time

USP
Glock
Desert Eagle

Second time

USP
Glock
Desert Eagle
Usp
Glock
Desert Eagle

So it just keep repeating itself. How do I fix this?:(
08-05-2003, 08:45 AM#6
Krakou
Add an action Clear Dialog at top of your dialog trigger.
08-05-2003, 08:54 AM#7
Izidkiel
OMG THANK YOU!!!:D