Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
t.buur

position of upper part of player

Recommended Posts

Dear all

 

Maybe you know the problem that if you are using trackIr your body is leaning foreword if you have lowered the weapon. Reason for this is that you haven't a feeling where your body is pointing at and your head is compositing this automatically.

 

So I want to write a mod which will hold the upper part of the body vertically when the weapon is lowered.

I have checked all scripting commands but found only solutions to find out the direction of the head (getCameraViewDirection).

 

At the end I need the position the upper part of the body is pointing at.

 

I read a lot of old topics in the net that explain that I have to look for the cgfsceleton but I don't find it in ARMA 3.

 

Maybe one of you can give me a hint where I can find the position of the upper part of the player.

 

Greetings

 

Share this post


Link to post
Share on other sites

You could use eyePos (position of eyes), aimPos (position of heart/spine), and if need be selectionPosition to find two known points on the torso. The difference between the two points is the torso up/down vector.

Share this post


Link to post
Share on other sites

×