View Full Version : Aim Down Site fire issue
SpacepiG
08-13-2010, 12:44 AM
I am working on setting up a weapon where it is possible to aim down sight.
My problem is that when i press my right mousekey to bring the sight up (and keep it pressed) my left mousekey will no longer fire.
Is this a limit in UDK that i can not hold both mousebuttons at the same time or just bad coding by me?
Anyone succeeded who care to share a hint?
UnrealEverything
08-13-2010, 03:07 AM
Not sure what the problem is in your case but I am able to get left and right mouse presses at the same time.
SpacepiG
08-13-2010, 06:50 AM
Hmmm, for some reason i can not get it to work. I have to release one of the buttons to get the other one to detect for some reason.
a_karimi
08-13-2010, 08:59 AM
I think in UDK, mouse buttons are by default for shooting in 2 different fire modes. So this is possibly your problem: when shooting in one fire mode (holding right mouse button), you can't activate the other fire mode (by clicking left mouse button) in the same time.
I suggest take a look at UDKInput.ini and change the right mouse click behavior.
I hope it would work :)
SpacepiG
08-13-2010, 10:49 PM
Brilliant, i didnt even think of that. Will test to bind it to command goADS or similar.
Thank you!
a_karimi
08-14-2010, 09:21 AM
Yes it was UDKInput.ini itself! You need to change line 139 to something like this:
Bindings=(Name="RightMouseButton",Command="zoomIn | OnRelease zoomBackOut")
I test it and it works fine :D
SpacepiG
08-14-2010, 05:52 PM
thank you so much, very appreciated.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.