예제 #1
0
        private void OnCrash(object sender, CEventArgs e)
        {
            if (e.isRepaired)
            {
                DashControl(dashIni);
            }

            if (!e.isRepaired)
            {
                DashControl(dashIni, true);
            }
        }
예제 #2
0
        private void CheckStatus()
        {
            CEventArgs e         = new CEventArgs();
            Vehicle    myVehicle = Game.Player.Character.CurrentVehicle;

            if (myVehicle != null)
            {
                if (myVehicle.BodyHealth <= 950f)
                {
                    e.isRepaired = false;
                    Crash(this, e);
                }
                else
                {
                    e.isRepaired = true;
                    Crash(this, e);
                }
            }
        }