Hey Storm_Mortis,
thanks for helping me out.
My initial function looked like this:
Code:
function missiles()
{
	ent_create("missile.mdl", vector(plSHIP.x+50*[color:#FF0000]+[/color]sin(plSHIP.pan), plAIR.y+50*cos(plAIR.pan), 0), rocket);
	ent_create("missile.mdl", vector(plAIR.x+50*[color:#FF0000]-[/color]sin(plAIR.pan), plAIR.y+50*-cos(plAIR.pan),0), rocket);
	wait(1);
}



I had those two mixed up... so these two missile launchers were rotating a bit wired. Only matching the Aircrafts rotation every 90°.
Then I made up some really long formulas... I feel so stupid now... a simple "-" and "+" mix up...

Thanks for showing me. That saved me quiet some time.

P.S.: The tutorial (chapter 8, at the end) states that a negative pan rotates the model counterclockwise and a positive pan rotates a model clockwise. It the other way around, isn't it?
If you create an entity and rotate it by positive 30 degrees it rotates counterclockwise (mathematical correct).
Well, just a detail.

Problem solved, thanks again.

Last edited by SomebodyNew; 07/27/09 21:01.