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

Paperdoll Change?


VisualBasic6
 Share

Recommended Posts

So Ive edited some code that changes the paperdoll of a weapon a player has equipped if they press ctrl. For example: an axe appears on the back of the character but when the player presses ctrl the axe appears in the players hand.
However I would like to have the weapon change back to the original paperdoll after, lets say 10 seconds. How do I code a timer to change the paperdoll back to its original state after a few seconds? I know I could just have it change back to the original paperdoll as long as ctrl is not pressed but it just doesnt look right.
Heres what I have written in BltPlayer:

>! If ControlDown = True Then
        If GetPlayerEquipment(Index, Weapon) > 0 Then
            'Find Item
            If GetPlayerEquipment(Index, Weapon) = 2 Then
                'change paperdoll
                Item(GetPlayerEquipment(Index, Weapon)).Paperdoll = 2
            End If
        End If
    End If
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...