Answered Retreive personnal hand position by script (vr mode)

stardust62

New member
Messages
2
Reactions
1
Points
3
Hello,

I saw that to get hands positon by script, we have to call these methods below, but i don't know what is the class where these functions are declared, so i can't call them.
could someone please help me ?

// Transform of the player (center between the eyes)
//public static Transform GetPlayerHead();

// Transform of the left hand, returns null in Desktop mode
//public static Transform GetPlayerLeftHand();

// Transform of the right hand, returns null in Desktop mode
//public static Transform GetPlayerRightHand();
 
Seems you have been looking at documentation for my old VaM-ScriptEngine mod. That was before VaM officially supported plugins, back in 2018...the dark ages of VaM. Because of the success of that, Meshed added the proper plugin support we have now. However, it's hopelessly outdated now. Please just ignore that documentation, it will just be more confusing than helpful.

Anyway, you can get the Transforms like this:
C#:
// player head
CameraTarget.centerTarget.transform

// left/right hand
SuperController.singleton.leftHand
SuperController.singleton.rightHand
 
Upvote 0
Seems you have been looking at documentation for my old VaM-ScriptEngine mod. That was before VaM officially supported plugins, back in 2018...the dark ages of VaM. Because of the success of that, Meshed added the proper plugin support we have now. However, it's hopelessly outdated now. Please just ignore that documentation, it will just be more confusing than helpful.

Anyway, you can get the Transforms like this:
C#:
// player head
CameraTarget.centerTarget.transform

// left/right hand
SuperController.singleton.leftHand
SuperController.singleton.rightHand
Hello @MacGruber, big thanks for that, realy appreciate :cool:
 
Upvote 0
Back
Top Bottom