The
@ target will target the player you're looking at for ULX commands. To bind a key, use the following command:
bind "<KEY>" "ulx <COMMAND> @"
For reference, there are more special targeting characters:
Targeting Expression | Meaning | Notes |
^ | Targets the current player | |
%<GROUP> | Matches all users with access to the given group | Inheritance counts - matches that group, plus all groups above that group in the current inheritance branch |
#<GROUP> | Matches only members of the given group | |
$<ID> | Matches users by ID | IDs include SteamIDs, unique IDs, user IDs, and IPs |
!<TARGET> | Negates the given targeting string | Matches all users except those that match the given targeting string - if paired with %, it matches all users in groups below (but not in) the given group |
You may also mix and match targeting strings---just separate each target with a
, (comma) to select targets that match any of the given targeting strings.
P.S: This would likely belong in
General Chat and Help and Support.