Пример #1
0
 private void OnSwitchingComplete()
 {
     if (!IsRemoteControlled)
     {
         Clone?.Delete();
         Clone = null;
     }
 }
Пример #2
0
        public void StopRC()
        {
            // Stop remote controlling
            IsRemoteControlling = false;

            // Set position/rotation back of normal player
            if (Vehicle.GetPedOnSeat(VehicleSeat.Driver) == Game.Player.Character)
            {
                Game.Player.Character.Task.WarpOutOfVehicle(Vehicle);
                Game.Player.Character.Position  = Clone.Position;
                Game.Player.Character.Heading   = Clone.Heading;
                Game.Player.Character.IsVisible = true;
            }

            // Delete the clone
            Clone?.Delete();
        }
Пример #3
0
 public override void Stop()
 {
     IsRemoteControlling = false;
     Clone?.Delete();
 }