public void SwitchToRogersSierra() { Function.Call(Hash.DETACH_ENTITY, TargetVehicle, false, false); int handle = Train.Handle; unsafe { Function.Call(Hash.DELETE_MISSION_TRAIN, &handle); } IsRogersSierra = true; RogersSierra = Main.RogersSierra; Train = RogersSierra.ColDeLorean; RogersSierra.VisibleLocomotive.ToggleExtra(1, true); RogersSierra.AttachedDeLorean = TargetVehicle; IsAccelerationOn = false; }
public void SwitchToRegular() { DetachTargetVehicle(); IsRogersSierra = false; RogersSierra.AttachedDeLorean = null; RogersSierra = null; PrepareTargetVehicle(true); Vector3 position = TargetVehicle.GetOffsetPosition(new Vector3(0, -10, 0)); Train = Function.Call <Vehicle>(Hash.CREATE_MISSION_TRAIN, _variation, position.X, position.Y, position.Z, Direction); SetCollision(false); SetVisible(false); //CruiseSpeedMPH = 1; SetPosition(TargetVehicle.Position); }