It's just to add effect to a map, as the sun sets the fighting gets more intense and i wanted to direct a few missiles towards both sides without them actually hitting anything, near misses if you like. One such effect is the enemy are reinforcing via heli and a few missiles just missing the heli's looks nice. Also, i have some nice jet sounds, some low level some high altitude and the enemy firing pop shots in to the darkened sky in all directions would look nice, i say would look nice, I'm still having trouble with the SetDir and SetVectorUp.
Using this code below in a trigger i can get an object to fire a missile towards the west 270' and at an angle of around 25', trouble is as soon as i change the SetDir to anything other then 270 the SetVectorUp goes all weird! I 've just spent hours playing around with the [Sin 25, 0, Cos 25] part of the code (that Mr Peanut provided for me using 270 as an exampled), but i just can't get the missiles to fire in the direction and at the angles i would like.(apart from 270')
blah = "M_TOW_AT" createvehicle [getpos Missile select 0, getpos Missile select 1,(getpos Missile select 2)+10] ;blah SetDir 270 ;blah setVectorUp [+sin 25 , 0, cos 25]
Doing my head in! )
Turk.