Can someone please help I'm trying to make the alt key togglable and then to check if toggle is true.
I have set the alt key to gun safety and the left mouse button to shoot in the project settings under input map.
I want to make the alt key(gun safety) togglable and then check to see if the alt key's toggle is false and then only print("shoot") when the left mouse button(shoot) is pressed.
if Input.is_action_just_pressed("gun safety"):
somehow make alt key togglable
somehow make it check if the alt key's toggle is true
and then only if toggle is false print("shoot")