• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

Solved Retreive personnal hand position by script (vr mode)

stardust62

New member
Joined
Mar 21, 2021
Messages
2
Reactions
1
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();
 
Solution
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
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
Solution
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