tim0984 Posted April 28, 2015 Report Share Posted April 28, 2015 Hi, I've been editing a dutch mod for my personal use and there's a parkatbase script in it but there is a 'anfahr' and 'wende' ( i assume its approach and direction, my german sux ) position which are vectors, and since I really suck at mathemetics I really have no idea how these work. Can someone either explain me how vectors work or how I can use virtual objects instead of vectors. i tried changingal=Game::GetActors("park3"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,600,0);to al=Game::GetActors("park3"); // * parking place name (virtual object)anfahrpos = Game::GetActors("park3_approach");wendepos = Game::GetActors("park3_facing");but that doesn't work either, I'd appreciate some help! The script:// ParkAtBase-Script (c) a-rescue | its not allowed to remove this lineconst char IMG[] = "gowache";int DummyGroup = "90";const char AlarmSound[] = "mod:Audio/Sounds/park.wav";object ParkAtBase : CommandScript{ParkAtBase(){SetIcon(IMG);SetCursor(IMG);SetValidTargets(ACTOR_VEHICLE);SetRestrictions(RESTRICT_SELFEXECUTE);SetPossibleCallers(ACTOR_VEHICLE);SetGroupID(DummyGroup);}bool CheckGroupVisibility(GameObject *Caller){return true;}bool CheckPossible(GameObject *Caller){if (!Caller->IsValid() || Caller->GetType() != ACTOR_VEHICLE)return false;Vehicle v(Caller);if (v.IsValid() && !v.IsDestroyed()){return true;}PersonList pl = v.GetPassengers();for(int i=0; i < pl.GetNumPersons(); i++){ Person p = pl.GetPerson(i); if(!p.IsCarryingPerson()) { return true; } else { return false; }}return false;}bool CheckTarget(GameObject *Caller, Actor *Target, int ChildID){if (!Caller->IsValid() || !Target->IsValid() || Caller->GetID() != Target->GetID())return false;Vehicle v(Caller);if (v.IsValid() && !v.IsDestroyed()){return true;}return false;} void PushActions(GameObject *Caller, Actor *Target, int childID) { Vehicle v(Caller); if (v.HasCommand("VcmdWarningLightsOn")) { Game::ExecuteCommand("VCmdWarningLightsOff", &v, &v); } if (v.HasCommand("DUMMY_HASBELICHTING")) { v.EnableSpecialLights(false); v.RemoveCommand(DUMMY_HASBELICHTING); } if (v.IsBlueLightEnabled()) { Game::ExecuteCommand("VCmdBlueLightsOff", &v, &v); } if (v.HasCommand("DUMMYHasSiren")) { Game::ExecuteCommand("DUMMYDisableSiren", &v, &v); } if (v.HasCommand("DUMMYHasAutoSiren")) { Game::ExecuteCommand("VCmdAutoSirenOff", &v, &v); } if(v.IsInstalled()) { return; // Wenn DLK aufgebaut ist, oder ein Schlauch am Fahrzeug angeschlossen ist! } Vehicle v(Caller); ActorList al; Actor parkplatz; Vector parkpos; Vector anfahrpos; Vector wendepos; PersonList pl;{Audio::PlaySample(AlarmSound);}// car detection, parking place detection and approach and turn settings/////// CAR 1 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("ovd")) // * car-name{al=Game::GetActors("park"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 2 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("tas")) // * car-name{al=Game::GetActors("park3"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 3 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("sprinter")) // * car-name{al=Game::GetActors("park2"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 4 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("erb")) // * car-name{al=Game::GetActors("park4"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (0,600,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 5 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("tas2")) // * car-name{al=Game::GetActors("park5"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 6 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("pm")) // * car-name{al=Game::GetActors("park6"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 7 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("ha")) // * car-name{al=Game::GetActors("park7"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 8 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("tas3")) // * car-name{al=Game::GetActors("park8"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 9 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("tas4")) // * car-name{al=Game::GetActors("park9"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 10 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("pm2")) // * car-name{al=Game::GetActors("park10"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 11 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("tas5")) // * car-name{al=Game::GetActors("park11"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 12 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("tas6")) // * car-name{al=Game::GetActors("park12"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 13 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("tascas")) // * car-name{al=Game::GetActors("park13"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 14 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("al")) // * car-name{al=Game::GetActors("park14"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 15 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("nh1")) // * car-name{al=Game::GetActors("nhpark1"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 16 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("nh2")) // * car-name{al=Game::GetActors("nhpark2"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 17 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("nh3")) // * car-name{al=Game::GetActors("nhpark3"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 18 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("nh4")) // * car-name{al=Game::GetActors("nhpark4"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 19 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("motor")) // * car-name{al=Game::GetActors("park19"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 20 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("ovdg")) // * car-name{al=Game::GetActors("park20"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 21 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("rr2")) // * car-name{al=Game::GetActors("park21"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 22 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("rr")) // * car-name{al=Game::GetActors("park22"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 23 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("lifeliner1")) // * car-name{al=Game::GetActors("park23"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (0,600,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)v.EnableBlueLights(false);}else/////// CAR 24 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("reanimatie")) // * car-name{al=Game::GetActors("park25"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 25 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("reanimatie2")) // * car-name{al=Game::GetActors("park26"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 26 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("nh5")) // * car-name{al=Game::GetActors("nhpark5"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 27 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("nh6")) // * car-name{al=Game::GetActors("nhpark6"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 28 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("nh7")) // * car-name{al=Game::GetActors("nhpark7"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 29 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("nh8")) // * car-name{al=Game::GetActors("nhpark8"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 30 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("ovdp")) // * car-name{al=Game::GetActors("ovdp1"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 31 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("voa")) // * car-name{al=Game::GetActors("voa1"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 32 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("mmt01")) // * car-name{al=Game::GetActors("mmt1"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 33 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("pmbgn")) // * car-name{al=Game::GetActors("parkpmbgn"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 34 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("duikwagen")) // * car-name{al=Game::GetActors("parkduikwagen"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 35 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("khv")) // * car-name{al=Game::GetActors("parkkhv"); // * parking place name (virtual object)anfahrpos = Vector (300,0,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 36 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("ha2")) // * car-name{al=Game::GetActors("parkha2"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 37 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("VC")) // * car-name{al=Game::GetActors("parkvc"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 38 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("hovd")) // * car-name{al=Game::GetActors("parkhovd"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 39 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("RBVC")) // * car-name{al=Game::GetActors("parkrbvc"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 40 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("RB120")) // * car-name{al=Game::GetActors("parkRB120"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 41 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("pj")) // * car-name{al=Game::GetActors("parkpj"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 42 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("ags")) // * car-name{al=Game::GetActors("parkags"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 43 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("ha3")) // * car-name{al=Game::GetActors("parkha3"); // * parking place name (virtual object)anfahrpos = Vector (300,0,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 44 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("hv")) // * car-name{al=Game::GetActors("parkhv"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 45 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("ovdg2")) // * car-name{al=Game::GetActors("parkovdg2"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 46 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("motor_poli")) // * car-name{al=Game::GetActors("parkmotor_poli"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 47 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("tshlo")) // * car-name{al=Game::GetActors("parktshlo"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 48 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("pm3")) // * car-name{al=Game::GetActors("parkpm3"); // * parking place name (virtual object)anfahrpos = Vector (-300,0,0);wendepos = Vector (-600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 49 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("alhhw")) // * car-name{al=Game::GetActors("parkalhhw"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 49 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("alhw")) // * car-name{al=Game::GetActors("parkalhw"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 37 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("ovd96")) // * car-name{al=Game::GetActors("park96"); // * parking place name (virtual object)anfahrpos = Vector (0,300,0);wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 49 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("copi")) // * car-name{al=Game::GetActors("parkcopi"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0); // * vector (x,y,z) minus values with minus (-x,-y,-z)wendepos = Vector (600,0,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// CAR 49 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("tw")) // * car-name{al=Game::GetActors("parktw"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// BUREA AUTO 1 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("pd_car1")) // * car-name{al=Game::GetActors("pd_park1"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// BUREA AUTO 2 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("pd_car2")) // * car-name{al=Game::GetActors("pd_park2"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// BUREA AUTO 3 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("pd_car3")) // * car-name{al=Game::GetActors("pd_park3"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////// BUREA AUTO 4 ///////////////////////////////////////////////////////////////////////////////////////////////////////////if (v.HasName("pd_car4")) // * car-name{al=Game::GetActors("pd_park4"); // * parking place name (virtual object)anfahrpos = Vector (0,-300,0);wendepos = Vector (0,-600,0);v.EnableBlueLights(false);v.SetSpeed(6.4f);}else/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////{Mission::PlayHint("Can't find the parking place for this car - Coordinates");return;}// Parkplatzpos.erkennungif(al.GetNumActors() > 0){parkplatz = *al.GetActor(0);parkpos = parkplatz.GetPosition();}else{Mission::PlayHint("Can't find the parking place for this car - Virtual object");return;}// EinparkenGame::FindFreePosition(&v, parkpos);if (v.HasName("lifeliner1")) {GameObject obje(Target);float VUmc = v.GetValidLandingAngle(&obje, parkpos);Caller->PushActionFlyTo(ACTION_NEWLIST, parkpos, true, VUmc);}else{v.PushActionMove(ACTION_NEWLIST, parkpos+anfahrpos);v.PushActionTurnTo(ACTION_APPEND, parkpos+wendepos);v.PushActionMove(ACTION_APPEND, parkpos);}v.RemoveCommand("DummyBeschikbaar");v.PushActionExecuteCommand(ACTION_APPEND, "VcmdDelete", Caller, 1, true);v.PushActionExecuteCommand(ACTION_APPEND, "Beschikbaar", Caller, 0, false);//v.PushActionExecuteCommand(ACTION_APPEND, "Beschikbaar", Caller, 0, false);}}; Yours,Tim Quote Link to comment Share on other sites More sharing options...
itchboy Posted April 28, 2015 Report Share Posted April 28, 2015 I don't understand that language either but from what I can tell, this is how this script (and most parking scripts) work: Quote Link to comment Share on other sites More sharing options...
tim0984 Posted April 28, 2015 Author Report Share Posted April 28, 2015 I don't understand that language either but from what I can tell, this is how this script (and most parking scripts) work:thanks, but what I get now is this: how it looks when the mission starts: http://i.imgur.com/58kd3Yl.jpg when i dispatch it and park it again: http://i.imgur.com/RTSzfrn.jpg it doesnt drive in the VO completely do you have any idea what i did wrong? Quote Link to comment Share on other sites More sharing options...
itchboy Posted April 29, 2015 Report Share Posted April 29, 2015 You'd need to make the collision box of the vehicles smaller. You can do this in the editor by going to the physics editor. Won't explain further than this. Another thing would be to give the parking space more distance between vehicles and that fence. Quote Link to comment Share on other sites More sharing options...