Jump to content
  • 0

How to make mirror?


CryexS

Question

1 answer to this question

Recommended Posts

  • 0

See https://github.com/EpochModTeam/EpochCore/blob/release/Sources/a3_epoch_code/compile/interactions/fn_mirrorSetup.sqf

Which is called from the open door action on the wardrobe... you will need to do some work to get it working with other stuff but the code above shows how the image is generated... The wardrobe definition is:

    class wardrobe_epoch : WH_Loot
    {
        scope = 2;
        mapSize = 1;
        cost = 0;
        isGround = 0;
        author = "Kiory";
        displayName = "$STR_EPOCH_Wardrobe";
        destrType = "DestructNo";
        vehicleclass = "Epoch_objects";
        model = "\x\addons\a3_epoch_assets_2\wardrobe.p3d";
        forceSupply = 0;
        simulClass = "Wardrobe_SIM_EPOCH";
        staticClass = "wardrobe_epoch";
        sections[] = {"camo"};
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {""};
        class AnimationSources
        {
            class open_door_l
            {
                source = "user";
                animPeriod = 1;
                initPhase = 0;
            };
            class open_door_r
            {
                source = "user";
                animPeriod = 1;
                initPhase = 0;
            };
        };
        class UserActions
        {
            class open_door_l
            {
                displayName = "$STR_EPOCH_Search";
                displayNameDefault = "<img image='\A3\ui_f\data\map\VehicleIcons\iconvehicle_ca.paa' size='2.5' />";
                position = "left";
                radius = 3;
                onlyForPlayer = 0;
                condition = "this animationPhase ""open_door_l"" < 0.5";
                statement = "this animate [""open_door_l"", 1]; this animate [""open_door_r"", 1]; this call EPOCH_LootIT; [this] call EPOCH_fnc_mirrorSetup;";
            };
        };
    };

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...