
To make player get a visual effect that clearly disturb the view (like radiations or others) follow theses steps :
​
​
1-Make vieweffect.sqf in your mission folder and past into the file :
​
​
0 = [] spawn {
PP_wetD = ppEffectCreate ["WetDistortion",300];
PP_wetD ppEffectEnable true;
PP_wetD ppEffectAdjust [2.77,0.2,0.2,2.51,1,1,1,0.05,0.01,0.05,0.01,0.25,0.1,0.2,0.2];
PP_wetD ppeffectCommit 5;
sleep 5;
PP_wetD ppEffectAdjust [0,0.0,0,0,0,0,0,0,0,0,0,0,0,0,0];
PP_wetD ppeffectCommit 5;
}
​
Note : change the number in green 5 to modify the time of the effect
​
​
2-Inside your trigger that you placed in EDEN Editor, write the follow sentence :
​
​
null = [plr] execVM "vieweffect.sqf";
​
​
Go to into your trigger and you will see your vision affected during 10 seconds (5 for the main effect and 5 to come back to normal state)
​