Hi. I have a grapple hook that people abuse very easy on. I was wondering if someone could give me a code that would make it so you can use it for one minute and It takes 1 min and a half to recharge. I would also like it to say how long more you have to grapple. Thanks Tobias.
Just set a boolean to false after they fire it so they can't fire it again and then after x amount of time set it to true.
Can I have an example of this?
[lua]nextgrapple = false
timer.Simple( 60, function()
nextgrapple = true
end )
[/lua]
Makes nextgrapple false, then after 60 seconds, true.
Also, remember to set the boolean to the player and not as just a global variable. So since it's a SWEP I think you would set the boolean as
[lua]
self.Owner.nextgrapple = false
[/lua]
so that the boolean is for the player who used the grapple.
Also is there a way to disable the crosshair, it glitches?
Sorry, you need to Log In to post a reply to this thread.