Ok, here's yet another problem, probably quite easy to solve, but I don't get it.
Problem - My gun is attached to the firespot bone of the player, which of course is at the hands
. The problem is that it will not rotate accordingly to the firespot bone, just maintain the right position. The dummy object is just to point the firespot bone towards the target, I'm not sure if that is part of the problem or not.
Code -
REM POSITION/ROTATE WEAPON
If WeaponStance = 1
Position Object CurrentWeapon.Number,Limb Position X(PlrObj,PlrFirespot),Limb Position Y(PlrObj,PlrFirespot),Limb Position Z(PlrObj,PlrFirespot)
Rotate Object CurrentWeapon.Number,Limb Angle X(PlrObj,PlrFirespot),Limb Angle Y(PlrObj,PlrFirespot),Limb Angle Z(PlrObj,PlrFirespot)
Endif
REM ROTATE LIMB TO CAMERA ANGLE
Position Object PlrFirespotDumObj,Limb Position X(PlrObj,PlrFirespot),Limb Position Y(PlrObj,PlrFirespot),Limb Position Z(PlrObj,PlrFirespot)
Point Object PlrFirespotDumObj,Object Position X(99999),Object Position Y(99999),Object Position Z(99999)
Rotate Limb PlrObj,PlrFirespot,Object Angle X(PlrFirespotDumObj),Object Angle Y(PlrFirespotDumObj),Object Angle Z(PlrFirespotDumObj)
Thanks a lot for any help guys. I appreciate these forums alot.