i have the script to bring stuff up on your screen and select them like options, but i would love to be able to click them like in the weapon select menu. i remeber seeing it done before…
does anyone know how to do this?
Here is a basic mouse click function…modify and change as you will as it is very basic…
[CODE]if (mousebuttons==1){
if (mousescreenx=>[VERY LEFT PIXEL OF IMAGE ON SCREEN]&&mousescreenx=<[VERY RIGHT PIXEL OF IMAGE ON SCREEN]){
if (mousescreeny=>[VERY TOP PIXEL OF IMAGE ON SCREEN]&&mousescreenx=<[VERY BOTTOM PIXEL OF IMAGE ON SCREEN]){
// PUT SCRIPT HERE TO TAKE PLACE WHEN CLICKING ON THE SPECIFIED AREA ABOVE
}
}
}[/CODE]
If your images are pasted onto a level x/y coordinate other than a screen x/y coordinate use the following:
mousescreenx => worldx(IMAGEXPositionVERYLEFT,IMAGEYPositionVERYTOP) && mousescreenx =< worldx(IMAGEXPositionVERYRIGHT,IMAGEYPositionVERYBOTTOM)
mousescreeny => worldy(IMAGEXPositionVERYLEFT,IMAGEYPositionVERYTOP) && mousescreeny =< worldy(IMAGEXPositionVERYRIGHT,IMAGEYPositionVERYBOTTOM)
Reply or PM me if you have problems
WHY DO YOU USE TAB!?
and you could use in|x1,x2|
I use TAB cuz i typed up that script quickly in notepad for him
I use STYLE in the editor