im woundering,, is it posseble to script afterburer on the su34 ?
Or would it be to hard tracking the position of the aircraft? i mean like the 3d position of the object, not only the 3d position on the map..
i know one can do many fancy effects with the drop command,,
Drop accepts a named selection instead a position as long as you provide the object is last parameter. If you find out the named selection for Su34 exhausts you will be able to have a pretty nice afterburner effect.
Are you using named selections or positions relative to aircraft pos? If the former, please, post these named selections If the last, that will keep cosmetical forever as the drops will not consider pitch/roll of the plane.
Quote[/b] ]that will keep cosmetical forever as the drops will not consider pitch/roll of the plane.
Issues with pitch/roll of the plane are irelevant since Arma. See setvectorUp and setVectorDir and associated commands.
actually it's not completely irrelevant. since the particles are not simply dropped but emitted in a certain direction i had to adjust the script a little. otherwise the afterburner trail would have always pointed in the same direction
i solved that problem now by simply running a loop that updates the particle emitters vector as the plane rotates. i also had to update the emitters position that way since is seems to stop once the plane had a certain distance to it. this is all solved now but unfortunately i've run into another problem:
i need to adjust the speed of the particles according to the plane's speed in order to prevent the particles from becoming too spread out at high speed. i had this working before i made the last few adjustments but something must have broken it. mayby i'll find the culprit tomorrow
those are the numbers that need to be adjusted to correct the issue above. they determine the vector at which particles are emiited from the source:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_exhaustdir_x = -(vectorDir _aircraft select 0)*30;
_exhaustdir_y = -(vectorDir _aircraft select 1)*30;
_exhaustdir_z = -(vectorDir _aircraft select 2)*30;[/QUOTE]
as you can see it no longer becomes streched at high speed
i have also adjusted it so that length and size of the trail is now influenced by aircraft speed. i would have preferred it to be influenced by throttle settings though. anybody know if that is possible?
anyway - all that's left now is tweaking the colors, shape and size a bit then making it fully functional, via hotkey or something.