Hey everyone,
I am trying to make a script, where when I press a key, the crosshair would switch to another. Im hoping to get a bind button, I.E. I would be with crosshair 2 at all times, and whenever I press "m", the crosshair would switch to crosshair 5. When I release m, the crosshair would swtich to crosshair 2 again.
So far I have this, but it doesnt work. Could anyone help me?
alias dotxhairtype "dotxhairtypeb"
alias dotxhairtypeb "cl_crosshair_file crosshair2;cl_crosshair_scale 32;alias dotxhairtype dotxhairtyper"
alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtypeb"
bind m +dotxhairtype
Thanks :)
Hey everyone,
I am trying to make a script, where when I press a key, the crosshair would switch to another. Im hoping to get a bind button, I.E. I would be with crosshair 2 at all times, and whenever I press "m", the crosshair would switch to crosshair 5. When I release m, the crosshair would swtich to crosshair 2 again.
So far I have this, but it doesnt work. Could anyone help me?
[code]
alias dotxhairtype "dotxhairtypeb"
alias dotxhairtypeb "cl_crosshair_file crosshair2;cl_crosshair_scale 32;alias dotxhairtype dotxhairtyper"
alias dotxhairtyper "cl_crosshair_file crosshair5;cl_crosshair_scale 14;alias dotxhairtype dotxhairtypeb"
bind m +dotxhairtype
[/code]
Thanks :)
You have to bind it like this: bind m dotxhairtype
The rest looks fine!
You have to bind it like this: bind m dotxhairtype
The rest looks fine!
Great it works, thanks :)
Would you happen to know how I would make it a toggle button? IE Crosshair 5 only shows up when pressing m and disappears upon releasing?
Thanks for your help
Great it works, thanks :)
Would you happen to know how I would make it a toggle button? IE Crosshair 5 only shows up when pressing m and disappears upon releasing?
Thanks for your help
TysroneI'm going to take flappi's post and make it to your liking:
alias -CH1 "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH2 "cl_crosshair_file crosshair5; cl_crosshair_scale 14"
bind m "+CH2"
I'm pretty sure it'll work
Hey, :) thanks for the help, however the m now doesnt seem to do anything. Any ideas?
[quote=Tysrone]I'm going to take flappi's post and make it to your liking:
alias -CH1 "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH2 "cl_crosshair_file crosshair5; cl_crosshair_scale 14"
bind m "+CH2"
I'm pretty sure it'll work[/quote]
Hey, :) thanks for the help, however the m now doesnt seem to do anything. Any ideas?
more dumb things flappi fixed
more dumb things flappi fixed
alias -CH "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH "cl_crosshair_file crosshair5; cl_crosshair_scale 14"
Bind M "+CH"
Fixed it.
alias -CH "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH "cl_crosshair_file crosshair5; cl_crosshair_scale 14"
Bind M "+CH"
Fixed it.
Flappialias -CH "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH "cl_crosshair_file crosshair5; cl_crosshair_scale 14"
Bind M "+CH"
Fixed it.
I'm dumb, forgot to take the numbers out, uggh
[quote=Flappi]alias -CH "cl_crosshair_file crosshair2; cl_crosshair_scale 32"
alias +CH "cl_crosshair_file crosshair5; cl_crosshair_scale 14"
Bind M "+CH"
Fixed it.[/quote]
I'm dumb, forgot to take the numbers out, uggh
Great!! Thank you so much! Man this forum is the best. Every time I have an issue, there are always people here to help me fix it within like 10 minutes. Thanks again :)
Great!! Thank you so much! Man this forum is the best. Every time I have an issue, there are always people here to help me fix it within like 10 minutes. Thanks again :)