Jump to content
Sign in to follow this  
der bastler

Help needed

Recommended Posts

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[] = {TacticalFlashlight};

         weapons[] = {};

         requiredVersion = 1.70;

    };

};

class CfgVehicles

{

    class All {};

    class Static: All {};

    class Building: Static {};

    class Strategic: Building {};

    class TacticalFlashlight: Strategic

    {

         scope = 2;

         vehicleClass = "Objects";

         displayname = "Tactical Flashlight"

         model = "\taclight2\taclight2_proxy.p3d";

         simulation = "StreetLamp";

         colorDiffuse[] = {0.900000,0.800000,0.600000};

         colorAmbient[] = {0.100000,0.100000,0.100000};

         brightness = 1;

         class UserActions

         {

              class Einschalten

              {

                   displayName = "$STR_ACTION_LIGHTON";

                   position = "Light";

                   radius = 0.8;

                   condition = "LightIsOn this != ""ON""";

                   statement = "this SwitchLight ""ON""";

              };

              class Ausschalten

              {

                   displayName = "$STR_ACTION_LIGHTOFF";

                   position = "Light";

                   radius = 0.8;

                   condition = "LightIsOn this != ""OFF""";

                   statement = "this SwitchLight ""OFF""";

              };

         };

    };

};

<span id='postcolor'>

But: OFP crashes when I try to preview the object in the editor! WHY?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Hey, c'mon! An official "No, it's not possible!" would release me from this "tactical flashlight"-quest...

wink.gif

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  

×