hi ,
i have this code:
IF SPACEKEY()=1 AND bulletlife=0 AND ammo > 0
POSITION OBJECT 2,OBJECT POSITION X(1), OBJECT POSITION Y(1), OBJECT POSITION Z(1)
POINT OBJECT 2,OBJECT POSITION X(1), OBJECT POSITION Y(1), OBJECT POSITION Z(1)
SHOW OBJECT 2
SET OBJECT TO CAMERA ORIENTATION 2
bulletlife = 30
DEC ammo
ENDIF
IF bulletlife > 0
DEC bulletlife
TEXT 2,736, "Missile Launched"
MOVE OBJECT 2,25
IF bulletlife = 0 THEN HIDE OBJECT 2
ENDIF
ENDFUNCTION
which fires a bullet, although when it fires it goes straight forward to the camera's perspective, although i would prefer it to fire forward in the direction the object(a jet) is facing, as sometimes when turning the object, and you fire a bullet which fires forward, away from the camera, whilst the jet is facing to the left/right,
i think it is this line SET OBJECT TO CAMERA ORIENTATION 2 that makes the bullet fire according to the camera, any ideas of how i could get it to fire according to the direction the jet is pointing?