Rexxenexx 0 Posted August 22, 2002 I tried getting the position from the chooper with getPos AND position (same result) it doesnt get the y then I tried selecting the 0, 1, 2 of the getPos and adding to the Y to raise it and it still trails the ground. well heres the script after molesting it for a while: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">~1 _campos = position chin1 _x = _campos select 0 _z = _campos select 1 _y = _campos select 2 _smoke = "SmokeShell" camCreate [_x,_z,_y] #loop _campos = position chin1 _x = _campos select 0 _z = _campos select 1 _y = _campos select 2 _smoke setpos [_x,_z,_y] goto "loop" ;? (_height > 10) : goto "loop" ;_smoke setpos [10,10,0] exit<span id='postcolor'> Right now I just want it to work forever while Im testing it as you can see by the marked out lines. Again, why doesnt it get the y position all it does is trail the ground??? This has to be because its a camera right??? So its relative to the ground, i dunno.... Share this post Link to post Share on other sites
Balschoiw 0 Posted August 22, 2002 this is not exactly what you asked for, but it can be modified to your wishes: http://home.arcor.de/vektorboson/downloads/smoke_trail.zip It will generate a smoke trail attached to planes. Share this post Link to post Share on other sites
RED 0 Posted August 22, 2002 The script should look more like: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _smoke = "SmokeShell" camCreate [_x,_z,_y] #loop 0.1 _smoke setpos [getpos chopper select 0,getpos chopper select 1, getpos chopper select 2] goto "loop" exit <span id='postcolor'> I don't have the time to play around with it at the moment, but a smoke shell doesn't make a good trail, just patches of smoke if I remember. RED Share this post Link to post Share on other sites
bn880 5 Posted August 22, 2002 You should use the drop command for smoke in Resistance. Search this forum, people are already playing around with fire and smoke using drop. Once you get that, just do not run the fire.sqs. Share this post Link to post Share on other sites
RED 0 Posted August 23, 2002 Yeah thats the best method, but he may not have Resistance RED Share this post Link to post Share on other sites
Rexxenexx 0 Posted August 25, 2002 Thanks guys I knew you could help!! I didn't know about that drop command, way cool! This is what I came up with, still needs some tweaking to look real. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_darka = [0, 0, 0, 0.3] _darkb = [0, 0, 0, 0] _reda = [0.8,0.3, 0, 0.7] _redb = [1, 0.5, 0, 0] _chopperpos = getpos chin1 _height = _chopperpos select 2 drop ["cl_basic", "", "Billboard", 1, 8, [0, -5, 1], [0, 0, 9], 1, 1, 0.85, 0, [3, 14],[_darka,_darkb],[0],0.01,0.01,"","",chin1] drop ["cl_basic", "", "Billboard", 1, 7, [0, -5, 1], [0, 0, 8], 1, 1, 0.85, 0, [3, 12],[_darka,_darkb],[0],0.01,0.01,"","",chin1] drop ["cl_basic", "", "Billboard", 1, 6, [0, -5, 1], [0, 0, 7], 1, 1, 0.85, 0, [3, 8],[_darka,_darkb],[0],0.01,0.01,"","",chin1] drop ["cl_basic", "", "Billboard", 1, 5, [0, -5, 1], [0, 0, 6], 1, 1, 0.85, 0, [2, 5],[_darka,_darkb],[0],0.01,0.01,"","",chin1] drop ["cl_basic", "", "Billboard", 1, 4, [0, -5, 1], [0, 0, 5], 1, 1, 0.85, 0, [1, 3],[_darka,_darkb],[0],0.01,0.01,"","",chin1] #loop _chopperpos = getpos chin1 _height = _chopperpos select 2 ~0.01 drop ["cl_basic", "", "Billboard", 1, 3, [1, -5, 0.7], [0, 0, 5], 1, 1, 0.85, 0, [1, 5],[_darka,_darkb],[0],0.01,0.01,"","",chin1] drop ["cl_basic", "", "Billboard", 1, 1, [1, -5, 0.7], [0, 1, 1], 1, 1, 0.85, 0, [1, 5],[_darka,_darkb],[0],0.01,0.01,"","",chin1] drop ["cl_basic", "", "Billboard", 1, 2, [1, -5, 0.7], [0, 0, 5], 1, 1, 0.85, 0, [1, 0.1],[_reda,_redb],[0],0.01,0.01,"","",chin1] ? (_height < 1) : goto "end" goto "loop" #end exit<span id='postcolor'> Thanks again all Share this post Link to post Share on other sites