Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Attack key


ryandoo
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...