Search the Community
Showing results for tags 'mirror'.
Found 1 result
Download: MIL_Mirror: Dropbox/Armaholic Description: MIL_Mirror allows a mission maker to add a mirror-type effect to an object capable of using setObjectTexture. To use: - PIP MUST BE ENABLED for the mirror to work (Options >> Video >> General >> PIP). - 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"; Media: 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.