rafaelmfernandez Posted January 14, 2014 Report Share Posted January 14, 2014 I have the following in the mod to try and make this work. I always have this issue. 1. LATiller script 2. Start up script with the Tiller lines 3. Spawn_check VO by spawn point 4. LATrailerLogic script 6. The rig has a soccer ball as the trailer_coupling 7. The commands needed are all assigned to the rig. Here is my startup script, I have a feeling this is the issue.// Freeplay-Start (Grundgeruest + Einstellungs-Codeblock fŸr Fahrzeuge und Personal) by a-rescue/*void Update(){ GameObjectList GOL; GameObject *fz1; GOL = Game::GetGameObject("fire_station1_controlpanel") GOL = *fz1.GetObject(0); Vehicle v(fz1); Vector FahrzeugPos = v.GetPosition() if(Game::IsInTrigger("SoSi_1", FahrzeugPos)) { if(!v.HasCommand("DUMMYHasSiren") && v.HasCommand("DUMMYWillAutoSoSi")) { v.PushActionExecuteCommand(ACTION_NEWLIST, "Sirene1", Caller, 0, false); } } else { if(v.HasCommand("DUMMYHasSiren") && v.HasCommand("DUMMYWillAutoSoSi")) { v.PushActionExecuteCommand(ACTION_NEWLIST, "Sirene1", Caller, 0, false); } };*/void Start(){ GameObjectList l2("spawn_check"); if (l2.GetNumObjects() > 0) { GameObject obj = l2.GetObject(0); Game::ExecuteCommand("VcmdTillerCheck", &obj); obj.SetSelectable(false); } else System::Error("Spawn_check not found!"); // Grüne Schatten deaktivieren System::SetEnv("e4_doocclusion", 0); Camera::SetMinCamZ(100.0f); Camera::SetMaxCamZ(9900.0f); Camera::SetMinCamPitch(10.0f); Camera::SetMaxCamPitch(74.0f); GameObjectList l1; GameObject *o1; GameObjectList gol = Game::GetGameObjects("tree3"); // Hier den Namen, des Objektes das neutral auf der Map steht, siehe 3. GameObject *go; go = *gol.GetObject(0); Game::ExecuteCommand("UpdateBMA", go); GameObjectList l1("water_supply_main"); if(l1.GetNumObjects() > 0) { GameObject Obj = l1.GetObject(0); Game::ExecuteCommand("DummyCheckWaterSupply", &Obj); Game::ExecuteCommand("Vcmdflashinglights", &Obj); System::Log("WATER, Start DummyCheckWaterSupply"); } else System::Log("WATER, Can not find object with name: water_supply_main"); Game::ExecuteCommand("VcmdFlashingLights", &Obj);//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("L102"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("L123"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("B37"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("B57"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("D15"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("E217"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("E222"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("E227"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("E234"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("E235"); //Fahrzeugname if(l1.GetNumObjects() == 0) { Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); } else { o1 = *l1.GetObject(0); Vehicle v(o1); v.SetSpeed(13.0f); //Fahrzeuggeschwindigkeit v.EnableBlueLights(false); v.EnableBreakLights(false); v.EnableSpecialLights(false); v.EnableHeadLights(false); if (Game::IsMultiplayer()) { o1->SetPlayerMP(1); } }//// <BLOCK> /////////////////////////////////////////////////////////////////////////////////////////////Weitere Fahrzeugblšcke hier einfŸgen GameObject *ofz; GameObjectList lfz; lfz=Game::GetGameObjects("fire_station_controlpanel"); //Name des 1. Dispo if(lfz.GetNumObjects() > 0) { ofz = *lfz.GetObject(0); Game::AddToGroup(ofz,0); Audio::PlaySample("mod:Audio/FX/Funk/Hier Leitstelle.wav"); Mission::PlayHint("Welcome to Stillwater, the city that always sleeps!"); } else System::Log("STARTSCRIPT - FEHLER: Disponent wurde nicht gefunden ! ! ! !");};bool OnLoad(){ Start(); Process::Kill(); return true;} Quote Link to comment Share on other sites More sharing options...
Dyson Posted January 15, 2014 Report Share Posted January 15, 2014 There has to be a named VO just beyond the spawn that the tiller drives into, also makes sure you have the section in fp_freeplay.script which triggers the script too. x Quote Link to comment Share on other sites More sharing options...