Jump to content
Ghost Graphic Designs

Automatically disabling bluelights?

Recommended Posts

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. :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

 

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! :)

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...