Jump to content
  • 0
Sign in to follow this  
CryexS

How to make mirror?

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;";
            };
        };
    };

 

Share this post


Link to post
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.

Guest
Answer this question...

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

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...