0 Members and 1 Guest are viewing this topic.
private [   "_soldier",   "_ammo",   "_shot",   "_pos"];_soldier = _this select 0;_ammo = "bullet7_6";_shot = nearestObject [_soldier,_ammo];_pos = getPos _shot;_x = _pos select 0;_y = _pos select 1;_z = _pos select 2;_maxPuffs = 2;_i = 0;if (_ammo != "bullet7_6") then {((_this select 0)) exec ""shockdust.sqs""; exit};while {_i < _maxPuffs} do{drop ["cl_basic","","Billboard",1,8,[0,0,0],[(velocity _soldier select 0) / 2 + random 0.7 - random 0.7,(velocity _soldier select 1) / 2 + random 0.7 - random 0.7,0 + random 0.5],0,1,0.8,random 0.1,[0,3,4,5],[[0.85,0.85,0.85,0.05 + random 0.05],[0.85,0.85,0.85,0]],[0,1,0,1],0,0,"","",_shot];_i = _i + 1}
{((_this select 0)) exec ""shockdust.sqs"";exit}
{(_this select 0) exec "shockdust.sqs";exit}
if (_ammo != "bullet7_6") then { _soldier exec "shockdust.sqs"; } else { while {_i < _maxPuffs} do { drop ["cl_basic","","Billboard",1,8,[0,0,0],[(velocity _soldier select 0) / 2 + random 0.7 - random 0.7,(velocity _soldier select 1) / 2 + random 0.7 - random 0.7,0 + random 0.5],0,1,0.8,random 0.1,[0,3,4,5],[0.85,0.85,0.85,0.05 + random 0.05],[0.85,0.85,0.85,0],[0,1,0,1],0,0,"","",_shot]; _i = _i + 1; }; };
private [ "_soldier", "_ammo", "_shot", "_pos"];_soldier = _this select 0;_ammo = "bullet7_6";_shot = nearestObject [_soldier,_ammo];_pos = getPos _shot;_x = _pos select 0;_y = _pos select 1;_z = _pos select 2;_maxPuffs = 2;_i = 0;if (_ammo != "bullet7_6")then { _soldier exec "shockdust.sqs"; } else { while {_i < _maxPuffs} do { drop ["cl_basic","","Billboard",1,8,[0,0,0],[(velocity _soldier select 0) / 2 + random 0.7 - random 0.7,(velocity _soldier select 1) / 2 + random 0.7 - random 0.7,0 + random 0.5],0,1,0.8,random 0.1,[0,3,4,5],[0.85,0.85,0.85,0.05 + random 0.05],[0.85,0.85,0.85,0],[0,1,0,1],0,0,"","",_shot]; _i = _i + 1; };
Here's a picture of the error
if (_ammo == "bullet7_6")then { while {_i < _maxPuffs} do { drop ["cl_basic","","Billboard",1,8,[0,0,0],[(velocity _soldier select 0) / 2 + random 0.7 - random 0.7,(velocity _soldier select 1) / 2 + random 0.7 - random 0.7,0 + random 0.5],0,1,0.8,random 0.1,[0,3,4,5],[0.85,0.85,0.85,0.05 + random 0.05],[0.85,0.85,0.85,0],[0,1,0,1],0,0,"","",_shot]; _i = _i + 1; } else { _soldier exec "shockdust.sqs"; };
private [   "_soldier",   "_ammo",   "_shot",   "_pos"];_soldier = _this select 0;_ammo = "Bullet7_6";_shot = nearestObject [_soldier,_ammo];_pos = getPos _shot;_x = _pos select 0;_y = _pos select 1;_z = _pos select 2;_maxPuffs = 1;_i = 0;while {_i < _maxPuffs} do{drop ["cl_basic","","Billboard",1,8,[0,0,0],[(velocity _soldier select 0) / 2 + random 0.7 - random 0.7,(velocity _soldier select 1) / 2 + random 0.7 - random 0.7,0 + random 0.5],0,1,0.8,random 0.1,[0,3,4,5],[[[0.85,0.85,0.85,0.05 + random 0.05],[0.85,0.85,0.85,0]]],[0,1,0,1],0,0,"","",_shot];_i = _i + 1}