Jump to content
Sign in to follow this  
johnnyboy

man sized fire

Recommended Posts

I want to attach a fire effect to soldier object. I want it to be centered 1 meter off the ground, bit it always appears at ground level for me.

I thought the following code would do it (with a relative position specified of [0,0,1], but it ALWAYS places the fire at ground level.

_vehicle is the object passed in to attach the fire effect to (a soldier in this case)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_relpos = [0,0,1];

_PS1 = "#particlesource" createVehicleLocal _FirePos ;

_PS1 setParticleCircle [.05, [0, 0, 0]];

_PS1 setParticleRandom [0.2, [0.1,0.1,0] , [0.5, 0.5, 0], 1, 0.05, [0, 0, 0, 0], 0, 0];

_sizeArray = [1.5 * _size];

_PS1 setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 2, 6], "", "Billboard", 1, 1, _relpos , [0, 0, .5], 1, 1, 0.9, 0.3, _sizeArray , [[1, 0.7, 0.7, 0.5]], [1], 0, 0, "", "", _vehicle ];

_PS1 setDropInterval 0.03;

I thought where I have the _relpos parameter in the setParticleparams command would place the fire 1 meter high.

What am I doing wrong?

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  

×