TPM_Aus 137 Posted June 6, 2018 Hey all, I need some help with creating a trigger which produces an image on the players screen for a few seconds and plays some sound affects. Trying to produce a hallucination or flashback affect. What I think needs to happen is have in the trigger (on activation) null = [] execVM "images\flashback.sqf"; playmusic "example1"; or playsound "example1"; But I am not sure what to put in the flashback.sqf to make the image display. I am new to scripting so any help would be awesome. Peace TPM Share this post Link to post Share on other sites
TPM_Aus 137 Posted June 7, 2018 So Commy2 on the Arma 3 discord channel helped me out. ------------------Solved--------------------- Trigger (on activation) null = [] execVM "images\flashback.sqf"; Flashback.sqf (as below) "commy_hallucination" cutRsc ["RscTitleDisplayEmpty", "PLAIN", 0, false]; private _display = uiNamespace getVariable "RscTitleDisplayEmpty"; // kill duplicate vignette private _vignette = _display displayCtrl 1202; _vignette ctrlShow false; // texture control private _control = _display ctrlCreate ["RscPicture", -1]; private _width = safezoneW; private _height = safezoneH * (getResolution#4); private _left = 0.5 - _width / 2; private _top = 0.5 - _height / 2; _control ctrlSetPosition [_left, _top, _width, _height]; _control ctrlCommit 0; _control ctrlSetText "<path_to_image>"; // fade effect 0 spawn { sleep 10; // keep 10 seconds "commy_hallucination" cutFadeOut 2; // fade for 2 seconds }; 2 Share this post Link to post Share on other sites
zagor64bz 1225 Posted June 7, 2018 Thank you for posting the solution. many time we see the [SOLVED] tag and no posted solution. Good job! Share this post Link to post Share on other sites