Search the Community
Showing results for tags 'Script'.
-
Help Error line 25!!! Barterode-Modifikation // Freeplay-Start (Grundgeruest + Einstellungs-Codeblock fuer Fahrzeuge) void Start(){GameObjectList l1;GameObject *o1; //// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GameObject("water_supply_main"); if(l1.GetNumObjects() > 0){GameObject Obj = l1.GetObject(0);Game::ExecuteCommand("DummyCheckWaterSupply", &Obj);System::Log("WATER, Start DummyCheckWaterSupply");} elseSystem::Log("WATER, Can not find object with name: water_supply_main"); } //// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("MTW"); // FAHRZEUGNAME muss einmalig sein auf der Map if(l1.GetNumObjects() == 0){Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!"); // *}else{o1 = *l1.GetObject(0);Vehicle v(o1); v.SetSpeed(16.0f); // Wert anpassen ...v.SetMaxPassengers(2); // Wert anpassen ...v.SetMaxTransports(0); // Wert anpassen ...v.AssignCommand("ParkAtBase"); // Park-Kommando zuweisenv.EnableBlueLights(false);} //// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("TLF"); // FAHRZEUGNAME muss einmalig sein auf der Map 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); // Wert anpassen ...v.SetMaxPassengers(9); // Wert anpassen ...v.SetMaxTransports(0); // Wert anpassen ...v.AssignCommand("ParkAtBase"); // Park-Kommando zuweisenv.EnableBlueLights(false);} //// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("TSF"); // FAHRZEUGNAME muss einmalig sein auf der Map 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); // Wert anpassen ...v.SetMaxPassengers(9); // Wert anpassen ...v.SetMaxTransports(0); // Wert anpassen ...v.AssignCommand("ParkAtBase"); // Park-Kommando zuweisenv.EnableBlueLights(false);} //// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("STW1"); // FAHRZEUGNAME muss einmalig sein auf der Map 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); // Wert anpassen ...v.SetMaxPassengers(9); // Wert anpassen ...v.SetMaxTransports(0); // Wert anpassen ...v.AssignCommand("ParkAtBase"); // Park-Kommando zuweisenv.EnableBlueLights(false);} //// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("STW2"); // FAHRZEUGNAME muss einmalig sein auf der Map 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); // Wert anpassen ...v.SetMaxPassengers(9); // Wert anpassen ...v.SetMaxTransports(0); // Wert anpassen ...v.AssignCommand("ParkAtBase"); // Park-Kommando zuweisenv.EnableBlueLights(false);} //// <BLOCK> //////////////////////////////////////////////////////////////////////////////////////////// l1 = Game::GetGameObjects("STW3"); // FAHRZEUGNAME muss einmalig sein auf der Map 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); // Wert anpassen ...v.SetMaxPassengers(9); // Wert anpassen ...v.SetMaxTransports(0); // Wert anpassen ...v.AssignCommand("ParkAtBase"); // Park-Kommando zuweisenv.EnableBlueLights(false);} //// </BLOCK> ///////////////////////////////////////////////////////////////////////////////////////////}; bool OnLoad(){Start();Process::Kill();return true;}
-
St. Cloud City Mod This mod is based on LA mod 2.1 by hoppah. Features: -Hospital (with helipad) -Police Station. -Fire/EMS Stations. -New Fire Engines, Police cars, ambulances and Tec. -New Scripts. -LED lights. -New Map. -New skins. -New equipment. And more to come.. Thanks to Hoppah for is amazing scripts and base mod. All credits will be provided in the read me file. For daily updates follow me on facebook: www.emergency-planet.com/HDMods00 and subscribe me on youtube: http://www.youtube.com/user/HDModsEM4. I hope you enjoy
- 8 replies
-
- fictitious
- script
-
(and 2 more)
Tagged with:
-
emergency-wiki.de had the various types and descriptions about scripting for emergency. I saw this and planned to translate each page and download it. Unfortunately, it is now either under construction or just gone for good. Where can I find a resource to do the scripts? Similar to knowing when programming c# or VB and you KNOW you have variable.tostring() method. Where is the resource to know the various methods and types in order to script? I can make out what some of the scripts are doing and how they work, but I really want to experiment in this area and I'm looking for something to assist me. I know it exist. Just looking for someone who can point me to it since the site I was going to use no longer exist. Thanks!
-
I wanted to have a couple of my officers use mp5 rifles. So, I took the FBI Tactical officer and copied his prototype file to the newly selected officer hoping that it would retain all of the attributes. Well, it does. The officer, kneels, aims and shoots the gun. But there is not gun. He's holding an invisible mp5. What do I need to do to make him actually hold the mp5. How come it got lost in the transfer since it's using the same prototype of the FBI Tactical who does hold a mp5?
-
I have edited the Firestation script from the new york mod but when i go to load the mod it comes up with this message. Does anyone know what it means?
-
Hey guys! I am starting a brand new mod based off the town that I volly at, after the mod is done I am hoping that all the members that helped with the mod will help me to go onto another mod and hopefully have a great new modding team! So far I have the following people on the following positions: Mapping, Incidents, and Project Supervisor: Myself Lighting: search_destroy Models/Textures: mercurygrandmarquis1 Positions open: Another Modeler/Texture person; Scripter Thanks everyone! -JA
-
i need help with a parking script for the NY Mod i have an issue it is a syntax issue on line 156 anyone have a fix for this NYCFireStation.rar
-
HI everyone, I was trying several times to get new personal in my police car, but I won't work Does anyone see the problem? <unit id="TOURAN4-11"> <campaign> <missions value="1 2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20"> <prototype name="mod:Prototypes/Vehicles/03Politie/touran4-11.e4p" /> <price value="150" /> <speed value="120" /> <space value="2" /> <loadspace value="2" /> <personnel> <unit id="POLITIENORMAAL"> <defaultcount value="1" /> <unit id="PROFILER" /> <defaultcount value="0" /> <unit id="POLITIEKOGELVEST" /> <defaultcount value="0" /> <unit id="POLITIE_MET_JAS" /> <defaultcount value="0" /> <unit id="POLITIEMETVERKEERSJAS" /> <defaultcount value="1" /> </unit> </personnel> <equipment /> </missions> </campaign> <freeplay> <missions value="1 2 3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 22"> <prototype name="mod:Prototypes/Vehicles/03Politie/touran4-11.e4p" /> <price value="150" /> <speed value="120" /> <space value="2" /> <loadspace value="2" /> <personnel> <unit id="POLITIENORMAAL"> <defaultcount value="1" /> <unit id="PROFILER" /> <defaultcount value="0" /> <unit id="POLITIEKOGELVEST" /> <defaultcount value="0" /> <unit id="POLITIE_MET_JAS" /> <defaultcount value="0" /> <unit id="POLITIEMETVERKEERSJAS" /> <defaultcount value="1" /> </unit> </personnel> <equipment /> </missions> </freeplay> </unit> I tyed with _ between the words but that doesn't matter Or do I nee to call them like I called them in the editor?