Ejemplo n.º 1
0
 private void CheckIfPedsAreInVeh()
 {
     if (PedDriver.IsInVehicle(Vehicle, false) &&
         PedWorker.IsInVehicle(Vehicle, false))
     {
         Proc.SwapProcesses(CheckIfPedsAreInVeh, DriveBackToSpawn);
     }
 }
Ejemplo n.º 2
0
        private void VehicleStuck()
        {
            if (Game.IsKeyDown(KeyTeleportToDestination))
            {
                if (Vehicle && PedDriver.IsInVehicle(Vehicle, false) && PedWorker.IsInVehicle(Vehicle, false))
                {
                    Vehicle.SetPositionWithSnap(destPoint.Position);
                    Vehicle.Heading = destPoint.Heading;

                    Proc.DeactivateProcess(NotifyWhenStuck);
                    Proc.DeactivateProcess(VehicleStuck);

                    Proc.DeactivateProcess(WaitForArrival);
                    Proc.ActivateProcess(PostArrival);

                    timerNotifyTPWhenStuck.Stop();
                }
            }
        }