Page MenuHomeFeedback Tracker

Particles turn white when underwater
New, NormalPublic

Description

Particles that are underwater and also beneath the player's Y position will turn white.

Found while adding blood particles to fish as they sink to the ocean floor.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Particles
Steps To Reproduce

Exec this code on Altis

//Move the player into the water
player setPosASL [3616.72,9652.63,-10];
//Prevent drowning
[] spawn { while {true} do { player setOxygenRemaining 1.0; sleep 1.0; }; };

//Spawn a line of particles stretching from the surface to the ocean floor
private _playerPosASL = getPosASL player;
private _linePosASL = _playerPosASL vectorAdd [0,5,0];
private _oceanFloorHeight = (ATLToASL [_linePosASL # 0, _linePosASL # 1, 0.0]) # 2;
private _height = 0.0;
while {_height > _oceanFloorHeight} do {
	private _particlePosASL = [_linePosASL # 0, _linePosASL # 1, _height] vectorDiff _playerPosASL;
	drop [
		[
			"\A3\data_f\ParticleEffects\Universal\Universal",
			16, 13, 1, 0
		],
		"", "Billboard",
		1, 10,
		_particlePosASL,
		[0, 0, 0],
		0, 1.28, 1.0, 0.0,
		[1.0],
		[
			[1, 1, 1, 1]
		],
		[1000],
		0.0, 0.0,
		"", "", player
	];
	_height = _height - 1;
};
Additional Information

Event Timeline