ppEffectCreate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(effect names, params, return type, example)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Create post process effect specified by name and priority |= Description
| Create post process effect specified by effect name and priority.
 
See class CfgOpticsEffect for examples using:
* "chromAberration"
* "colorCorrections"
* "colorInversion"
* "dynamicBlur"
* "filmGrain"
 
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''ppEffectCreate''' effect |= Syntax
| '''ppEffectCreate''' effect |= Syntax


|p1= effect: [[Array]] |= PARAMETER1  
|p1= effect: [name, priority] |= PARAMETER1  


|p2= |= PARAMETER2  
|p2= name: [[String]] - name of effect type.  |= PARAMETER2  


|p3= |= PARAMETER3  
|p3= priority: [[Number]] - unique priority |= PARAMETER3  


| [[Array]] |= RETURNVALUE  
| [[Number]] - handle |= RETURNVALUE  


____________________________________________________________________________________________


|x1= <code>(example)</code>|= EXAMPLE1  
|x1= <pre>_ppGrain = ppEffectCreate ["filmGrain", 2005];</pre>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 10:44, 29 July 2009

Hover & click on the images for description

Description

Description:
Create post process effect specified by effect name and priority. See class CfgOpticsEffect for examples using:
  • "chromAberration"
  • "colorCorrections"
  • "colorInversion"
  • "dynamicBlur"
  • "filmGrain"
Groups:
Uncategorised

Syntax

Syntax:
ppEffectCreate effect
Parameters:
effect: [name, priority]
name: String - name of effect type.
priority: Number - unique priority
Return Value:
Number - handle

Examples

Example 1:
_ppGrain = ppEffectCreate ["filmGrain", 2005];

Additional Information

See also:
ppEffectAdjustppEffectCommitppEffectCommittedppEffectDestroyppEffectEnable

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

Notes

For some examples, check this topic - Lou Montana

Bottom Section