I’m making a silenced aug with decent nightvision (no shitty color change in scope) and it uses a console command, “nightvision_on”. I have no idea to detect how long the second mouse has been held down, so I can only make it activate when mouse2 is pressed, but the scope-in is a hold-down mouse type of thing.
timer.Simple(0.3, game.ConsoleCommand, "nightvision_on 1
I want to know if something like this exist
[lua]if self.owner:KeyIsDown(Mouse2) = true // obviously key doesn’t exist, but its just showing what I want
then timer.Simple(0.3, game.ConsoleCommand, "nightvision_on 1