Jump to content

Screen Region Click


.:HyPeX:.

Recommended Posts

Posted

Hello, is there a function to check if the client clicks in a specific "region"? so if i create a DxDrawRectangle i can know when a client clicks it.

Thanks

HyPeX

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Posted

There is no such a function but you can make it with : onClientClick like Blaawee say'd

onClientClick will return the screen x,y then

if  x>dx_x and xand y>dx_y and ythen  

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

Thanks, i was just thinking this, but wanted to see if there was a special function.

i'll test it out and post what happens..

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Posted
You can create an empty gui label and use onClientGUIClick.

hows that? setGUIalpha 0?

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...