Advertisement
Mangus875

Basic logic example for source engine scripts

May 19th, 2023 (edited)
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // right click to output whether or not left click is being pressed
  2.  
  3. alias "+m1" "alias is_m1_down m1_down"
  4. alias "-m1" "alias is_m1_down m1_up"
  5. alias "is_m1_down" "m1_up"
  6.  
  7. alias "m1_up" "echo mouse1 is not pressed."
  8. alias "m1_down" "echo mouse1 is pressed."
  9.  
  10. bind "mouse1" "+m1"
  11. bind "mouse2" "is_m1_down"
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement