I've made a dust script that makes more dust for tanks. However there is one problem.
How can I make the script detect witch dirrection the tank is in.
Here is the script..
_tank = _this select 0
#start
@speed _tank > 8
#loop
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) + 0, (getPos _tank select 1) + 1, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) + 0, (getPos _tank select 1) + 2, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) + 0, (getPos _tank select 1) + 3, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) + 0, (getPos _tank select 1) + 4, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) + 0, (getPos _tank select 1) - 1, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) + 0, (getPos _tank select 1) - 2, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) + 0, (getPos _tank select 1) - 3, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) + 0, (getPos _tank select 1) - 4, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) - 3, (getPos _tank select 1) + 1, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) - 3, (getPos _tank select 1) + 2, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) - 3, (getPos _tank select 1) + 3, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) - 3, (getPos _tank select 1) + 4, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) - 3, (getPos _tank select 1) - 1, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) - 3, (getPos _tank select 1) - 2, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) - 3, (getPos _tank select 1) - 3, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
drop ["cl_basic" , "" , "Billboard" , 120 , 15 , [(getPos _tank select 0) - 3, (getPos _tank select 1) - 4, getPos _tank select 2] , [1.5,1.5,0] , 1 , 0.185 , 0.155 , 0 , [0.25,20] ,[[0.375044,0.35977,0.194726,0.75],[0.62,0.72,0.81,0],[0.62,0.72,0.81,0],[0,0,0,0.1]] , [0] , 0.2 , 0.2 , "" , "" , ""]
?speed _tank < 8 : goto "start"
?!alive _tank :exit
~0.1
goto "loop"
It is only a scap, but when the tank turns arround, the dust doesn't.
Can anybody help me with this problem ??