Warning: file_put_contents(/ff_76e9508a1f63508f3a5712372f08597f3281f8a7931a5486.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setPiPEffect - OFPEC Scripting Command Reference | OFPEC The Editing Center

name setPiPEffect [effect, optionalParam1, ..., optionalParamN]

Operand types

name: String
[effect, optionalParam1, ..., optionalParamN]: Array

Type of returned value

Description

Sets Render Target's visual effect (Picture-in-Picture).

- name : String - Render surface reference from Render To Texture
- effect : Number - effect type
- optionalParam1: Parameters based on selected effect

Available effects:

  • 0: Normal - [0]

  • 1: Night Vision - [1]

  • 2: Thermal - [2]

  • 3: Color Correction - [3, enabled, brightness, contrast, offset, blend [r,g,b,a], lerp [r,g,b,a], rgb [r,g,b,a]]

  • 4: Mirror - [4]

  • 5: Chromatic Aberration - [5, enabled, powerx, powery, (bool) aspectCorrection]

  • 6: Film Grain - [6, enabled, intensity, sharpness, grainsize, intensityx1, intensityx2, (bool) monochromatic]
  • 7: Thermal Inverted [7]

Used In

Arma3

Example

"rendersurface" setPiPEffect [0];

"rendertarget0" setPiPEffect [3, 1.0, 1.0, 1.0, 0.0, [0.0, 1.0, 0.0, 0.25], [1.0, 0.0, 1.0, 1.0], [0.199, 0.587, 0.114, 0.0]];

Advertisement