kibaBG 54 Posted April 8, 2024 Hi, I am trying to apply some effects on player when he enters a "radiation zone". handle = ppEffectCreate ["FilmGrain", 2000]; handle ppEffectEnable true; handle ppEffectAdjust [0.3, 0.15, 1, 0.2, 0.5, 0]; handle ppEffectCommit 3; //terminate with ppEffectDestroy handle; I tried run this from trigger, its working but didn't find a way to terminate the script via the handle when the player get out from the zone ... I will be grateful for any ideas ... Share this post Link to post Share on other sites
Larrow 2828 Posted April 8, 2024 Store the handle on the trigger using setVariable. _handle = ppEffectCreate ["FilmGrain", 2000]; _handle ppEffectEnable true; _handle ppEffectAdjust [0.3, 0.15, 1, 0.2, 0.5, 0]; _handle ppEffectCommit 3; thisTrigger setVariable[ "ppEffect", _handle ]; //terminate with ppEffectDestroy ( thisTrigger getVariable "ppEffect" ); 1 1 Share this post Link to post Share on other sites
kibaBG 54 Posted April 9, 2024 @Larrow you are the man, thank you so much ! Share this post Link to post Share on other sites