mostly working
This commit is contained in:
@@ -24,8 +24,9 @@ private _flickerHandle = [_object] spawn {
|
||||
_object setVariable [QGVAR(flickerHandle), _flickerHandle];
|
||||
|
||||
// sound
|
||||
private _spark_sound = GVAR(zapSounds) call BIS_fnc_selectRandom;
|
||||
playSound3D [_spark_sound, _object, false, getPosASL _object, 1, 1, 20, 0, true];
|
||||
private _spark_sound = selectRandom (keys GVAR(zapSounds));
|
||||
private _sparkSoundData = GVAR(zapSounds) get _spark_sound;
|
||||
playSound3D [_sparkSoundData get "filename", _object, false, getPosASL _object, _sparkSoundData get "volume", _sparkSoundData get "pitch", 75, 0, true];
|
||||
|
||||
// particle effect
|
||||
private _e_static = "#particlesource" createVehicleLocal (getPosATL _object);
|
||||
@@ -65,7 +66,8 @@ if (_spark_type=="orange") then
|
||||
_scantei_spark setDropInterval 0.001;
|
||||
};
|
||||
|
||||
private _spark_sound = GVAR(zapSounds) call BIS_fnc_selectRandom;
|
||||
playSound3D [_spark_sound, _scantei_spark, false, getPosASL _object, 1, 1, 20, 0, true];
|
||||
private _spark_sound = selectRandom (keys GVAR(zapSounds));
|
||||
private _sparkSoundData = GVAR(zapSounds) get _spark_sound;
|
||||
playSound3D [_sparkSoundData get "filename", _object, false, getPosASL _object, _sparkSoundData get "volume", _sparkSoundData get "pitch", 75, 0, true];
|
||||
|
||||
[{deleteVehicle _this;}, _scantei_spark, 0.4 + (random 0.7)] call CBA_fnc_waitAndExecute;
|
||||
Reference in New Issue
Block a user