dawgra
|
  |
| Joined: 31 Oct 2008 |
| Total Posts: 9877 |
|
|
| 03 Oct 2015 01:51 PM |
So when you double tap the M1, tool fires twice. I want to prevent it from doing that. The tool is supposed to fire once, not twice. I think it's something related to latency - in Studio yo can't double tap fire.
ToolEquipped - obvious, right? CheckIfAlive() - it checks if our character is alive
function Activated() if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then return end local TargetPos = InvokeClient("MousePosition") if not TargetPos then return end TargetPos = TargetPos.Position local Direction = (TargetPos - Handle.Position).unit Tool.Enabled = false Fire(Direction) Tool.Grip = FireGrip wait(CoolDown/2) Tool.Grip = OriginalGrip wait(CoolDown/2) Tool.Enabled = true end
|
|
|
| Report Abuse |
|
|
Vezious
|
  |
| Joined: 09 Nov 2013 |
| Total Posts: 606 |
|
| |
|
dawgra
|
  |
| Joined: 31 Oct 2008 |
| Total Posts: 9877 |
|
| |
|
dawgra
|
  |
| Joined: 31 Oct 2008 |
| Total Posts: 9877 |
|
|
| 04 Oct 2015 04:48 AM |
Oh wait, I added a new debounce called "Fired".
It seems like the problem is 75% solved. |
|
|
| Report Abuse |
|
|
Vezious
|
  |
| Joined: 09 Nov 2013 |
| Total Posts: 606 |
|
|
| 06 Oct 2015 04:13 PM |
| Its amazing what one word can do, huh? |
|
|
| Report Abuse |
|
|
dawgra
|
  |
| Joined: 31 Oct 2008 |
| Total Posts: 9877 |
|
|
| 09 Oct 2015 01:41 PM |
| The IsAlive() function was causing the problem. |
|
|
| Report Abuse |
|
|
dawgra
|
  |
| Joined: 31 Oct 2008 |
| Total Posts: 9877 |
|
| |
|