Ghost Graphic Designs Posted July 25, 2014 Report Share Posted July 25, 2014 Hi. Just wondering if there's any way of making a freeplay script that makes all of the commandable vehicles on map automatically disable their bluelights when the freeplay finishes loading? For example, incorporating this part ( v.EnableBlueLights(false); ) in the freeplay script without having to do it unit by unit. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted July 25, 2014 Report Share Posted July 25, 2014 What are you trying to achieve exactly? You've got me a bit confused. Is this for the default game's freeplay or for a mod? Quote Link to comment Share on other sites More sharing options...
Ghost Graphic Designs Posted July 25, 2014 Author Report Share Posted July 25, 2014 It's for a mod. I'm seeking for an edit of the original freeplay.script in order to when you start the freeplay, all of the emergency vehicles that you've placed on the map don't have bluelights flashing. Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted July 25, 2014 Report Share Posted July 25, 2014 Aha, I see.Well, I know some things about this, but not much.I'll take the LA Mod for example. This contains a script called LAFireStationStart.script. This spawns all vehicles and personnel on starting a freeplay game. This also contains the parameter you stated before, namely: v.EnableBlueLights(false);.The bad news: This has to be done for every unit. The good news, it can be done fast. Just copy over that line, including the very last bit of the line above.Then place your cursor behind the line you want the BlueLights parameter below and hit paste.This should neatly paste the line in between the other lines. Hope this helps. Quote Link to comment Share on other sites More sharing options...
Ghost Graphic Designs Posted July 25, 2014 Author Report Share Posted July 25, 2014 Copy that. I'll see what I can do. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted July 25, 2014 Report Share Posted July 25, 2014 No problem, let me know if you still find problems, Quote Link to comment Share on other sites More sharing options...
Ghost Graphic Designs Posted July 25, 2014 Author Report Share Posted July 25, 2014 Hi again. Do you know how can I disable the fire department units menu? The default one from which you can call the RW, TLF, DLK, etc. Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted July 25, 2014 Report Share Posted July 25, 2014 Do you mean the Fire Department button in the left bottom side of your screen in freeplay? Where you can call any FD vehicle you want? Quote Link to comment Share on other sites More sharing options...
Ghost Graphic Designs Posted July 25, 2014 Author Report Share Posted July 25, 2014 Yep. That one. Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted July 25, 2014 Report Share Posted July 25, 2014 I wouldn't know from the top of my head. You could try downloading a mod that has that feature and looking around in its code, or trying to find info here on the forum. Quote Link to comment Share on other sites More sharing options...
Ghost Graphic Designs Posted July 25, 2014 Author Report Share Posted July 25, 2014 Will do. Thanks for the assistance. ^^ Quote Link to comment Share on other sites More sharing options...
mariuswww Posted July 25, 2014 Report Share Posted July 25, 2014 Try this in the start up script l1 = Game::GetGameObjects("vehicle-name"); //Fahrzeugname if(l1.GetNumObjects() == 0){Mission::PlayHint("Fahrzeug befindet sich nicht auf der Karte!");}else{o1 = *l1.GetObject(0);Vehicle v(o1);v.EnableBlueLights(false);v.EnableBreakLights(false);v.EnableSpecialLights(false);v.EnableHeadLights(false); } Note that this does 1 vehicle at the time only. Quote Link to comment Share on other sites More sharing options...
novius Posted July 25, 2014 Report Share Posted July 25, 2014 For the menu, you need to remove all the fire vehicles in the freeplaybase.xml file. That file is your menu, so anything you take out of that, you take off the freeplay call menu. Quote Link to comment Share on other sites More sharing options...
Ghost Graphic Designs Posted July 27, 2014 Author Report Share Posted July 27, 2014 Try this in the start up script Note that this does 1 vehicle at the time only. For the menu, you need to remove all the fire vehicles in the freeplaybase.xml file. That file is your menu, so anything you take out of that, you take off the freeplay call menu.OK! Thank you! Quote Link to comment Share on other sites More sharing options...