From e23ea382fdd1e5b1b68757cd333ab92d08e885c9 Mon Sep 17 00:00:00 2001 From: IT07 Date: Sun, 21 Aug 2016 21:37:17 +0200 Subject: [PATCH] New script --- .../sqf/RscDisplayBaseAttack/onLoad.sqf | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Missionname.MapName/VEMFr_client/sqf/RscDisplayBaseAttack/onLoad.sqf diff --git a/Missionname.MapName/VEMFr_client/sqf/RscDisplayBaseAttack/onLoad.sqf b/Missionname.MapName/VEMFr_client/sqf/RscDisplayBaseAttack/onLoad.sqf new file mode 100644 index 0000000..adeb84b --- /dev/null +++ b/Missionname.MapName/VEMFr_client/sqf/RscDisplayBaseAttack/onLoad.sqf @@ -0,0 +1,30 @@ +/* + Author: IT07 + + Description: + handles the things that need to be done when RscDisplayBaseAttack is active +*/ + +_dsp = uiNamespace getVariable [ "RscDisplayBaseAttack", displayNull ]; +if not ( isNull _dsp ) then + { + _dsp setVariable [ "doFlash", true ]; + while { not ( isNull _dsp ) } do + { + if ( _dsp getVariable [ "doFlash", false ] ) then + { + _dsp setVariable [ "doingFlash", true ]; + uiSleep 1.5; + { + _x ctrlSetFade 1; _x ctrlCommit 0.25; + uiSleep 0.25; + } forEach ( allControls _dsp ); + uiSleep 0.5; + { + _x ctrlSetFade 0; _x ctrlCommit 0.25; + uiSleep 0.25; + } forEach ( allControls _dsp ); + _dsp setVariable [ "doingFlash", false ]; + } else { uiSleep 0.5 }; + }; + };