Page tree
Skip to end of metadata
Go to start of metadata

Introduced in

Version:19.1.0

Description

Description:Applies a fog effect to the specified Location. When the main camera enters this location, the fog effect is applied.

Syntax

Syntax:

location setFogLocation [density, color, floor, ceiling]

Parameters:
  • location: Location - Location to apply the fog effect to.
  • density: Number - Intensity of fog (0 - 1).
  • color: Array - Color of fog, in [R, G, B].
  • floor: Number - Minimum altitude of fog in meters (ASL).
  • ceiling:  Number - Maximum altitude of fog in meters (ASL).
Return Value:Nothing

Examples

Examples:
_fog = createLocation ["OutLineArea", getPos player, 50, 100];
_fog setFogLocation [1, [0.6,0.1,0.1] 0, 50];

Additional Information

See also:setFogEffect, setCurrent, ppEffectLocation
Multiplayer:Local effect only.
Problems:

Notes