Exemple #1
0
 private void OnSwitchingComplete()
 {
     if (!IsRemoteControlled)
     {
         Clone?.Delete();
         Clone = null;
     }
 }
        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();
        }
 public override void Stop()
 {
     IsRemoteControlling = false;
     Clone?.Delete();
 }