ryandoo Posted August 15, 2011 Author Share Posted August 15, 2011 Hello , I was wondering where in the source is where the attack key is defined as "Ctrl key" so I can change the key to something different. Link to comment Share on other sites More sharing options...
Beanie93 Posted August 15, 2011 Share Posted August 15, 2011 Go to modGlobals and change```Public ControlDown As Boolean```To whatever key you want. Let's use A as example, so it would be:```Public ADown As Boolean```Then, look for``` If GetKeyState(vbKeyControl) < 0 Then ControlDown = True Else ControlDown = False End If```And, using A again as an example, change to``` If GetKeyState(vbKeyA) < 0 Then ADown = True Else ADown = False End If```Then look for``` If GetAsyncKeyState(VK_CONTROL) >= 0 Then ControlDown = False```Again, using A as an example, change to:``` If GetAsyncKeyState(VK_A) >= 0 Then ADown = False```Then, in modConstants, look for```Public Const VK_CONTROL As Long = &H11```and change to```Public Const VK_A As Long = &H11```Finally, in Sub CheckAttack, look for``` If ControlDown Then```and change to``` If ADown Then```There. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now