Author Topic: Need help with code  (Read 408 times)

How could i connect a key bind to this code? VVV

Code: [Select]
%obj.client.bottomPrint("\c0Distance\c3: " @ mFloatLength(vectorDist(%obj.getMuzzlePoint(%slot),%pos),1),1);
I want it to toggle on and off when press a key

You don't do that cause server-sided keybinds are impossible, but you CAN package existing functions that are binded and do stuff, like "serverCmdPrevSeat" for comma, but of course that would depend on the client's control settings.