Forum Jump :

Author Message

Posts: 12

Level: Member

Country: au
Location: Sydney
In-game name: Millenwise

#1 Posted at 2018-12-04 07:23        

MIL_Mirror - Dropbox/Armaholic

MIL_Mirror allows a mission maker to add a mirror-type effect to an object capable of using setObjectTexture.

To use:
    - Copy the file MIL_Mirror.sqf into your mission directory.
    - Place your intended mirror object (e.g. a whiteboard - "Land_MapBoard_01_Wall_F") and name it.
    - Add this line to the object's Init field in the mission editor:
    _mirror setObjectTexture [0,"#(argb,256,256,1)r2t(_surface,1)"];
    - _mirror - object
              - the name you give to the object in the editor
    - _surface - name given to the surface
    - Example:
    mirror1 setObjectTexture [0,"#(argb,256,256,1)r2t(mirror1surface,1)"];

    - Run the script from either init.sqf or initPlayerLocal.sqf (it's local only) using:
    nul = [_mirror,_surface] execVM "MIL_Mirror.sqf";
    - _mirror - object
              - the name you gave to the object in the editor
    - _surface - string
               - the string equivalent of what was used for _surface in the object's Init field in the editor
    - Example:
    nul = [mirror1,"mirror1surface"] execVM "MIL_Mirror.sqf";

Day/Night demo of some mirrors (0.50):

Known issues:
    - The reflection doesn't behave quite like a mirrored reflection, but it's the best I could achieve.
    - Resolution is low.
    - Torch beams (and probably most other light sources) aren't reflected, which is pretty obvious in the video.

If anyone finds any problems please let me know.

Thank you.

This post was edited by beno_83au (2018-12-04 10:40, 79 days ago)

Author Message

Posts: 20510

Level: Super Admin

Country: nl
Location: The Netherlands
Age: 43
In-game name: Foxhound

#2 Posted at 2018-12-04 10:31        
Thanks for the new release :-)
News is up and you can find our mirror here:

Visit my family webshop