Hmm.. Make as many points as you need then
function ContrailCheck(%obj)
{
// return;
if(!isObject(%obj))
return;
%speed = vectorLen(%obj.getVelocity());
if(%speed < %obj.dataBlock.min[INSTERT VEHICLE NAME]Speed)//---remove the brackets and put in the vehicle name
{
if(%obj.getMountedImage(3) !$= "")
{
%obj.unMountImage(3);
%obj.unMountImage(4);
%obj.unMountImage(5);
%obj.unMountImage(6);//-------add another one of these; the number is where it will mount
}
}
else
{
if(%obj.getMountedImage(3) $= 0)
{
%obj.mountImage(contrailImage,3);
%obj.mountImage(contrail2Image,4);//--the contrail#image represents the datablocks below
%obj.mountImage(contrail3Image,5);
%obj.mountImage(contrail4Image,6);//--------same here
}
}
schedule(2000,0,"ArwingCheck",%obj);
}
Then,
add 3 more of these witch makes 4 emitters. Dont forget to rename the ContrailImage to Contrail2Image for the 2nd emitter. Contrail3Image for third, and for Contrail4Image
function ContrailImage1::onDone(%this,%obj,%slot)
{
%obj.unMountImage(%slot);
}
datablock ShapeBaseImageData(ContrailImage2)
{
shapeFile = "base/data/shapes/empty.dts";
emap = false;
mountPoint = 4;//-----where to mount it dont forget to change this too
rotation = "1 0 0 -90";
stateName[0] = "Ready";
stateTransitionOnTimeout[0] = "FireA";
stateTimeoutValue[0] = 0.01;
stateName[1] = "FireA";
stateTransitionOnTimeout[1] = "Done";
stateWaitForTimeout[1] = True;
stateTimeoutValue[1] = 10000;
stateEmitter[1] = ContrailEmitter;//---use same emitter
stateEmitterTime[1] = 10000;
stateName[2] = "Done";
stateScript[2] = "onDone";
};
function Contrail2Image::onDone(%this,%obj,%slot)
{
%obj.unMountImage(%slot);
}