Jump to content
Sign in to follow this  
OChristie

Attach Particles Effects to Memory Point

Recommended Posts

Ok, So I have searched the forums and come up with a few solutions to there problems but not mine, I have tried to use there code in my script to achieve my end goal, but, I still get an error:

_PS1 = attachTo* [helo selectposition MEM_POINT_DAMAGE,[0,0,0],MEM_POINT_DAMAGE];

Error: Expected ; at *

I have no Idea where I am going wrong because I have used the Community Resources Wiki to look for the correct commands but they keep throwing me error's.

Script in Question:

//damageTail.sqf

#define MEM_POINT_DAMAGE "tailRotor_axis"
_PS1 = "#particlesource" createVehicleLocal getpos _obj;
_PS1 = attachTo [helo selectposition MEM_POINT_DAMAGE,[0,0,0],MEM_POINT_DAMAGE];
_PS1 setParticleCircle [0, [0, 0, 0]];
_PS1 setParticleRandom [0.5, [1, 1, 0.4], [0, 0, 4], 0, 0.5, [0, 0, 0, 0], 0, 0];
_PS1 setDropInterval 0.01;
_PS1 setParticleParams [["\ca\data\ParticleEffects\FireAndSmokeAnim\FireAnim", 8, 2, 1], "", "Billboard", 1, 2, [0, random 0.5, random 1], [0, 0, 1], 10, 1, 0.9, 0.3, [1],[[1,1,1,0.5],[1,1,1,0.2],[1,1,1,0]], [0.5,0.5,0], 1, 1, "", "", helo selectposition MEM_POINT_DAMAGE];

Please could someone help me out, im truely stuck.

Thanks in advance.

Share this post


Link to post
Share on other sites

Info on the wiki:

player attachTo [tank,[0,-1,0],"Usti hlavne"];

_neo_

Edited by neokika

Share this post


Link to post
Share on other sites

Thanks for the info, I have re-written the script but still recieve an error

#define MEM_POINT_DAMAGE "tailRotor_axis"
_PS1 = "#particlesource";
_PS1 attachTo [helo,[0,0,0],MEM_POINT_DAMAGE];
_PS1 setParticleCircle [0, [0, 0, 0]];
_PS1 setParticleRandom [0.5, [1, 1, 0.4], [0, 0, 4], 0, 0.5, [0, 0, 0, 0], 0, 0];
_PS1 setDropInterval 0.01;
_PS1 setParticleParams [["\ca\data\ParticleEffects\FireAndSmokeAnim\FireAnim", 8, 2, 1], "", "Billboard", 1, 2, [0, random 0.5, random 1], [0, 0, 1], 10, 1, 0.9, 0.3, [1],[[1,1,1,0.5],[1,1,1,0.2],[1,1,1,0]], [0.5,0.5,0], 1, 1, "", "", helo selectposition MEM_POINT_DAMAGE];

---------- Post added at 13:54 ---------- Previous post was at 13:36 ----------

Got it working thank you neo for your reply it helped.

#define MEM_POINT_DAMAGE "tailRotor_axis"
_OBJ = GameLogicOne;
_OBJ attachTo [helo,[0,0,0],MEM_POINT_DAMAGE];
_PS = "#particlesource" createVehicleLocal getpos _OBJ;
_PS setParticleCircle [0, [0, 0, 0]];
_PS setParticleRandom [0.2, [ 1, 1, 0], [2, 2, 1], 0.2, 0.2, [0, 0, 0, 0], 0, 0];
_PS setDropInterval 0.05;
_PS setParticleParams [["\ca\data\ParticleEffects\FireAndSmokeAnim\FireAnim", 8, 2, 7], "", "Billboard", 1, 1, [random 0.5, random 0.5, 0], [0, 0, 2], 1, 1, 0.9, 0.3, [4,6],[[1,1,1,0.7],[1,1,1,0.5],[1,1,1,0]], [0,1], 1, 1, "", "", _obj];
_PS1 = "#particlesource" createVehicleLocal getpos _obj;
_PS1 setParticleCircle [0, [0, 0, 0]];
_PS1 setParticleRandom [0.5, [1, 1, 0.4], [0, 0, 4], 0, 0.5, [0, 0, 0, 0], 0, 0];
_PS1 setDropInterval 0.01;
_PS1 setParticleParams [["\ca\data\ParticleEffects\FireAndSmokeAnim\FireAnim", 8, 2, 1], "", "Billboard", 1, 2, [0, random 0.5, random 1], [0, 0, 1], 10, 1, 0.9, 0.3, [1],[[1,1,1,0.5],[1,1,1,0.2],[1,1,1,0]], [0.5,0.5,0], 1, 1, "", "", _obj];

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  

×