Neviothr 102 Posted July 19, 2016 How would one go about displaying an image on the screen when the player is using his NVGs, and removing it when he's not? Share this post Link to post Share on other sites
kylania 568 Posted July 19, 2016 http://killzonekid.com/arma-scripting-tutorials-dynamic-gui-part-7-nvg-overlay/ might be helpful. 1 Share this post Link to post Share on other sites
HallyG 239 Posted July 19, 2016 (edited) Possible starting point: h = [] spawn { PICTURE = "\A3\Weapons_F\Data\UI\gear_item_compass_ca.paa"; with uiNamespace do { TAG_Picture = findDisplay 46 ctrlCreate ["RscPicture", -1]; TAG_Picture ctrlSetPosition [safeZoneX, safezoneY, safeZoneW, safezoneH]; TAG_Picture ctrlCommit 0; }; findDisplay 46 displayAddEventHandler ["KeyDown", { params ["_control", "_key", "_shift", "_ctrl", "_alt"]; if (_key in (ActionKeys "NightVision")) then { (uiNamespace getVariable "TAG_Picture") ctrlSetText (["", PICTURE] select !(currentVisionMode player > 0)); }; false }]; }; Edited July 20, 2016 by hallyg 1 Share this post Link to post Share on other sites
Neviothr 102 Posted July 20, 2016 Possible starting point: h = [] spawn { PICTURE = "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_unbind_ca.paa"; with uiNamespace do { TAG_Picture = findDisplay 46 ctrlCreate ["RscPicture", -1]; TAG_Picture ctrlSetPosition [0, 0.8, 1, 0.2]; TAG_Picture ctrlCommit 0; }; findDisplay 46 displayAddEventHandler ["KeyDown", { params ["_control", "_key", "_shift", "_ctrl", "_alt"]; if (_key in (ActionKeys "NightVision")) then { (uiNamespace getVariable "TAG_Picture") ctrlSetText (["", PICTURE] select (currentVisionMode player isEqualTo 0)); }; false }]; }; Tried the above, nothing was displayed. Share this post Link to post Share on other sites
Neviothr 102 Posted July 20, 2016 http://killzonekid.com/arma-scripting-tutorials-dynamic-gui-part-7-nvg-overlay/ might be helpful. The created effect fades out after ~10 seconds. Share this post Link to post Share on other sites
HallyG 239 Posted July 20, 2016 Tried the above, nothing was displayed. I edited the picture as well as its position, give it another try. Hopefully it'll work- it seemed to work for me. :) 1 Share this post Link to post Share on other sites
Neviothr 102 Posted July 21, 2016 I edited the picture as well as its position, give it another try. Hopefully it'll work- it seemed to work for me. :) That did it, thank you very much! Share this post Link to post Share on other sites
Neviothr 102 Posted July 23, 2016 The issue was solved using a different method here: https://forums.bistudio.com/topic/192858-solved-help-with-editing-nvg-model/ Share this post Link to post Share on other sites