Jump to content
Sign in to follow this  
andersson

Turn off blinking lights.

Recommended Posts

Is it possible to turn off the red blinking lights ontop of high strukturs such as masts and watertowers? Switchlight doesnt work.

Share this post


Link to post
Share on other sites

I haven't tested but you could test if you can affect it with different damage values by using setDamage scripting command.

Share this post


Link to post
Share on other sites

No, it didnt work. But thank you for the suggestion!

Share this post


Link to post
Share on other sites

I doubt it is possible unfortunately.

The light's properties are defined in it's config, with the location being a named point in the model (i think, p3ds are not my thing). Markerlights seem to work unless the object is destroyed.

It would be possible to easily make a config only addon without any lights, but that's a hassle.

Example of the radio tower's config (buildings.pbo)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class Land_Vysilac_FM : House {

scope = protected;

armor = 150;

destrType = "DestructBuilding";

ladders[] = {{"start", "end"}};

model = "\ca\buildings\Vysilac_FM";

class MarkerLights {

class RedBlinking {

name = "cerveny pozicni blik";

color[] = {1.0, 0.1, 0.1, 1};

ambient[] = {0.1, 0.01, 0.01, 1};

brightness = 0.01;

blinking = true;

};

};

class Destruction {

animations[] = {{"ca\buildings\rtm\vysilac_fm.rtm", 0.5, 3}};

};

displayName = $STR_DN_RADAR1;

};

Share this post


Link to post
Share on other sites

switchLight does not work, and lightIsOn always returns false.

Share this post


Link to post
Share on other sites

I made a small addon where I disabled the lights, quick and easy. But the texture is still red when the light is gone so its in the model also......... And as its OLOD I cant do anything about it.

So my solution is to put a small concret block (the small on the side of the roads) and setpos it to cover that red lamp. Unfortunately I couldnt do it with default radar-mast as the light shines through so I still need my small addon....

Share this post


Link to post
Share on other sites
Quote[/b] ]I made a small addon where I disabled the lights, quick and easy. But the texture is still red when the light is gone so its in the model also......... And as its OLOD I cant do anything about it.

If you know the selection name in the OLOD model, you can remove the selection using a Hide animation in the model.cfg file.

Share this post


Link to post
Share on other sites

Ahhh!!! I must investigate that, thank you UNN!

edit: I thought that I was more into editing, but what/where is a model.cfg file? And I cannot find any information on "Hide animation" here or at ofpec...

Sorry UNN, can you give some help where to look?

You dont mean hiddenSelections[]?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×