Jump to content
Sign in to follow this  
Opticalsnare

Error Zero Divisor

Recommended Posts

Can't get my script to work, worked in A2 doesn't work in A3

_projectile = _this select 6;

_tracer = "#particlesource" createVehicle getPos (_this select 6);
_tracer setParticleCircle [0, [0, 0, 0]];
_tracer setParticleRandom [0, [0, 0, 0], [2.5, 2.5, 2.5], 0, 0, [0, 0, 0, 0], 0, 0, random 360];

_tracer setParticleParams 
[["warfxPE\ParticleEffects\Universal\smoke_02", 1, 0, 1],
"",
"Billboard",
1,
6, 

[0, 0, 0],

[(velocity _tracer select 0) - ((vectordir _projectile) select 0)*50,
(velocity  _tracer select 1) - ((vectordir _projectile) select 1)*50,
(velocity  _tracer select 2) - ((vectordir _projectile) select 2)*50],
0, 10.15, 7.9, 1.5, [2,4], [[1, 1, 1, 0.2],[1, 1, 1, 0]], [1], 0, 0, "", "", _projectile];

_tracer setdropinterval 0.002;

RPT reports

Error in expression <iles\AAmissile.sqf"

_projectile = _this select 6;

_tracer = "#particlesource" c>

Error position: <select 6;

_tracer = "#particlesource" c>

Error Zero divisor

Share this post


Link to post
Share on other sites
Can't get my script to work, worked in A2 doesn't work in A3

_projectile = _this select 6;

_tracer = "#particlesource" createVehicle getPos (_this select 6);
_tracer setParticleCircle [0, [0, 0, 0]];
_tracer setParticleRandom [0, [0, 0, 0], [2.5, 2.5, 2.5], 0, 0, [0, 0, 0, 0], 0, 0, random 360];

_tracer setParticleParams 
[["warfxPE\ParticleEffects\Universal\smoke_02", 1, 0, 1],
"",
"Billboard",
1,
6, 

[0, 0, 0],

[(velocity _tracer select 0) - ((vectordir _projectile) select 0)*50,
(velocity  _tracer select 1) - ((vectordir _projectile) select 1)*50,
(velocity  _tracer select 2) - ((vectordir _projectile) select 2)*50],
0, 10.15, 7.9, 1.5, [2,4], [[1, 1, 1, 0.2],[1, 1, 1, 0]], [1], 0, 0, "", "", _projectile];

_tracer setdropinterval 0.002;

RPT reports

I assume you are using the Fired eventhandler?, standard A3 or CBA?

Share this post


Link to post
Share on other sites

Looks like you are not picking your projectile up

How are you calling the script ?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×