Hi,
I got this
http://pastebin.com/bxUFSNqv.
In it I position my Object (Gun) and my problem is not as much code related as it is math related.
I need help to modify it so that when i look up the gun will stay in position and not be in the middle right corner of the screen as when i look down. The gun isn't positioned as a real would. Now I solved so that when you look up the gun doesn't stray of (same with down) But I can't manage to solve this one.
Check positionweapons() function to see what I mean.
Project in rar file and code in pastebin.
Regards,
Thomas