Author: Foxhound
Author Website:

Requirements: No addons required

Version: 1.2

Short description: This script creates different dust effects in your mission.

Date: 2010-07-07 21:17


Comments: (2)
Rating:



 

Slight Sand blowing effect Script
by
Jantemplar


Description:
Trying to create some effects for my missions,
I decided to investigate into creating a Dust Effect, that would give of a generic rolling dust across the desert, as such here it is.
Attached is a demo mission, the effect is best seen at night.


Usage:
Place the following code in your init or in the initialization box in a unit
nul = [unitname,radiusofeffect] execVM rollingsand.sqf
Place the following code in a text document called "rollingsand.sqf"
_obj = _this select 0;
_radius = _this select 1;
_pos = position _obj;

//--- Sand blowing
	_velocity = [1.0,1.0,0.0];
	_color = [1.0, 0.9, 0.8];
	_alpha = 0.02 + random 0.02;
	_ps = "#particlesource" createVehicleLocal _pos;  
	_ps setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 12, 48], "",
 "Billboard", 5, 3, [0, 0, -6], _velocity, 1, 1.275, 0.9, 15, [9], [_color + [0],
_color + [_alpha], _color + [0]], [0.01], 1, 0, "", "", _obj];
	_ps setParticleRandom [3, [30, 30, 0], [0, 0, 0], 1, 0, [0, 0, 0, 0.01], 0, 0];
	_ps setParticleCircle [_radius, [0, 0, 0]];
	_ps setDropInterval 0.001;


Version 1.2 - Same method as above, changed the color of the dust to make it more prominent.
_obj = _this select 0;
_radius = _this select 1;
_pos = position _obj;

//--- Dust
	_velocity = [1.0,1.0,0.0];
	_ps = "#particlesource" createVehicleLocal _pos;  
	_ps setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 12, 48], "",
"Billboard", 5, 3, [0, 0, -6], _velocity, 1, 1.275, 0.9, 15, [9], [[0.9, 0.9, 0.9 ,0.0],
[224/255, 208/255, 127/255, 0.1],[0.8, 0.8, 0.8, 0.0]], [0.01], 1, 0, "", "", _obj];
	_ps setParticleRandom [3, [30, 30, 0], [0, 0, 0], 1, 0, [0, 0, 0, 0.01], 0, 0];
	_ps setParticleCircle [_radius, [0, 0, 0]];
	_ps setDropInterval 0.001;


Credits:
The above code is a modification of BIS particle dust effect from mission CE3.



Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Dust,   Sandscript