Jump to content
rafaelmfernandez

Tiller Trailer is not spawning when called on map

Recommended Posts

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;}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...