ppEffectCommitted: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *E([a-z])" to "$1 - e$2")
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
|gr1= Camera Control
|gr1= Camera Control


|descr= Check whether given [[Post process effects|post process effect]] is committed.
|descr= Check whether given [[Post Process Effects|post process effect]] is committed.


|s1= [[ppEffectCommitted]] effect
|s1= [[ppEffectCommitted]] effect


|p1= effect: [[String]] - Effect name
|p1= effect: [[String]] - effect name


|r1= [[Boolean]]
|r1= [[Boolean]]
Line 25: Line 25:
|s2= [[ppEffectCommitted]] handle
|s2= [[ppEffectCommitted]] handle


|p21= handle: [[Number]] - Effect handle
|p21= handle: [[Number]] - effect handle


|r2= [[Boolean]]
|r2= [[Boolean]]
Line 35: Line 35:
|x3= <sqf>if (ppEffectCommitted "colorCorrection") then { hint "alteration done !" };</sqf>
|x3= <sqf>if (ppEffectCommitted "colorCorrection") then { hint "alteration done !" };</sqf>


|seealso= [[Post process effects]] [[ppEffectForceInNVG]] [[ppEffectEnable]] [[ppEffectDestroy]] [[ppEffectCreate]] [[ppEffectCommit]] [[ppEffectAdjust]]
|seealso= [[Post Process Effects]] [[ppEffectForceInNVG]] [[ppEffectEnable]] [[ppEffectDestroy]] [[ppEffectCreate]] [[ppEffectCommit]] [[ppEffectAdjust]]
}}
}}

Latest revision as of 14:06, 8 November 2023

Hover & click on the images for description

Description

Description:
Check whether given post process effect is committed.
Groups:
Camera Control

Syntax

Syntax:
ppEffectCommitted effect
Parameters:
effect: String - effect name
Return Value:
Boolean

Alternative Syntax

Syntax:
ppEffectCommitted handle
Parameters:
handle: Number - effect handle
Return Value:
Boolean

Examples

Example 1:
ppEffectCommitted "colorCorrection";
Example 2:
ppEffectCommitted _hndl;
Example 3:
if (ppEffectCommitted "colorCorrection") then { hint "alteration done !" };

Additional Information

See also:
Post Process Effects ppEffectForceInNVG ppEffectEnable ppEffectDestroy ppEffectCreate ppEffectCommit ppEffectAdjust

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note