PDA

View Full Version : Help needed



der bastler
Oct 22 2002, 13:59
After analyzing the demo model of the streetlamp I've create my own model with one resolution lod and one point in memory lod named "Light".

Here is it's config file:
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgPatches
{
    class BastlersTacticalFlashlight
    {
         units&#91;&#93; = {TacticalFlashlight};
         weapons&#91;&#93; = {};
         requiredVersion = 1.70;
    };
};

class CfgVehicles
{
    class All {};
    class Static&#58; All {};
    class Building&#58; Static {};
    class Strategic&#58; Building {};
    class TacticalFlashlight&#58; Strategic
    {
         scope = 2;
         vehicleClass = &#34;Objects&#34;;

         displayname = &#34;Tactical Flashlight&#34;
         model = &#34;&#92;taclight2&#92;taclight2_proxy.p3d&#34;;
         simulation = &#34;StreetLamp&#34;;

         colorDiffuse&#91;&#93; = {0.900000,0.800000,0.600000};
         colorAmbient&#91;&#93; = {0.100000,0.100000,0.100000};
         brightness = 1;

         class UserActions
         {
              class Einschalten
              {
                   displayName = &#34;&#036;STR_ACTION_LIGHTON&#34;;
                   position = &#34;Light&#34;;
                   radius = 0.8;
                   condition = &#34;LightIsOn this &#33;= &#34;&#34;ON&#34;&#34;&#34;;
                   statement = &#34;this SwitchLight &#34;&#34;ON&#34;&#34;&#34;;
              };

              class Ausschalten
              {
                   displayName = &#34;&#036;STR_ACTION_LIGHTOFF&#34;;
                   position = &#34;Light&#34;;
                   radius = 0.8;
                   condition = &#34;LightIsOn this &#33;= &#34;&#34;OFF&#34;&#34;&#34;;
                   statement = &#34;this SwitchLight &#34;&#34;OFF&#34;&#34;&#34;;
              };
         };
    };
};
[/QUOTE]<span id='postcolor'>

But: OFP crashes when I try to preview the object in the editor&#33; WHY?

der bastler
Oct 22 2002, 15:53
OK, some other questions:

Is it possible to activate the headlights of vehicles without a soldier inside? If not, is some kind of work-around possible?

der bastler
Oct 22 2002, 16:45
Hey, c&#39;mon&#33; An official "No, it&#39;s not possible&#33;" would release me from this "tactical flashlight"-quest...
http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/wink.gif