04.09.2010, 14:39
Well,yes,is it possible?
Since I've tried making it and it was just fucked up.
Maybe I miscalculated something.
This is how I tried to make it however:
There are no problems with the camera vector storing since the explosions are creating correctly:
So the problem is in SetObjectRot, is there any way of solving this issue? Or at least any alternatives would be highly appreciated.
And sorry, this is the first time I'm messing with camera vectors.
Since I've tried making it and it was just fucked up.
Maybe I miscalculated something.
This is how I tried to make it however:
pawn Code:
SetObjectRot(missile_object[i],VehCameraPos[i][0]+VehVectorPos[i][0],VehCameraPos[i][1]+VehVectorPos[i][1],VehCameraPos[i][2]+VehVectorPos[i][2]);
pawn Code:
CreateExplosion(VehCameraPos[i2][0]+(VehVectorPos[i2][0] * Dist)+OffSet[i2][0],VehCameraPos[i2][1]+(VehVectorPos[i2][1] * Dist)+OffSet[i2][1],VehCameraPos[i2][2]+(VehVectorPos[i2][2] * Dist)+OffSet[i2][2],7,100);
And sorry, this is the first time I'm messing with camera vectors.