CS2D
Scripts
Click on image then show menu
Click on image then show menu
4 replies Hello guys, i just need script if we clicked on HUDImage, we will get menu
HUDImage Example:
HUDImage = image('gfx/test.png',340,450,2)
Menu Example:
menu(id,"test,test")
Sry for my bad english You will need
reqcld ,
image ,
menu at least.
You spawn your image with the image command.
You can check if someone shoots with the
attack hook.
Then you check the mouse position with
reqcld and check if they are on the position of your image. Use
reqcld to get mouse position and use
attack to show the menu when you clicking on position of the button image area
... or you can equip player lasermineor mine to use
buildattempt
So if your player equip knife or claw or wrench then you can use 2 hooks (
attack or
attack2 or
buildattempt) for right or left click on screen