Skip to content

Commit

Permalink
lil thang to make x4s easier to timerblock
Browse files Browse the repository at this point in the history
  • Loading branch information
xianson committed Sep 12, 2024
1 parent a16896c commit b9abf9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ModernWarfareGuns/Data/Scripts/BobGuns/otherstuff/x45.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace launchers
public class x4 : MyGameLogicComponent
{
bool init = false;
bool shot = false;
int shot = 0;

IMyThrust thrust;

Expand All @@ -60,10 +60,10 @@ public override void UpdateBeforeSimulation()
}
else if (thrust.Enabled == true)
{
shot = true;
shot++;
}

if(shot)
if(shot > 10)
Launch(Entity);

}
Expand Down

0 comments on commit b9abf9c

Please sign in to comment.