VisualBasic6 Posted May 31, 2011 Author Share Posted May 31, 2011 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 More sharing options...
Jeff Posted June 1, 2011 Share Posted June 1, 2011 just make a timer, have it so whenever ctrl is pressed or you attack the timer is set to 0, every time it gets to 10 it makes the player paperdolls turn back to normal. 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