Skip to content
Vurv edited this page Feb 14, 2021 · 2 revisions

Last updated for version v0.3.1

Main Info

This is a sub-addon in VExtensions that allows you to interface with VRMod.
If you find any bugs, please report them to the Issues page.

Documentation

Functions

n = e:isPlayerInVR()

Returns 1 if a player is in VR or not, else 0.

n = e:usingEmptyHandsVR()

Returns 1 if a player is using empty hands in VR or not, else 0.

v = e:getHMDPosVR()

Returns the vector position of the head mounted device (the vr headset) of a player using VR.

a = e:getHMDAngVR()

Returns the angle of the head mounted device (the vr headset) of a player using VR.

v = e:getLeftHandPosVR()

Returns the vector position of the player's left hand in VR.

v = e:getLeftHandAngVR()

Returns the angle of the person's left hand in VR.

v = e:getRightHandPosVR()

Returns the vector position of the player's right hand in VR.

a = e:getRightHandAngVR()

Returns the angle of the player's right hand in VR.

RunOn Events

runOnVREnter(n enable)

If enable is not 0, the chip will start running on people entering VR.
If enable is 0, stops running on those events.

n = vrEnterClk()

Returns whether the chip was called on a vrEnter event.
Use vrEnterPly to get the player.

e = vrEnterPly()

Returns the player to enter vr whom caused the vrEnter event.

runOnVRExit(n enable)

Sets the chip to run on people exiting vr, if enable is not 0. If enable is 0, stops it from running on those events.

n = vrExitClk()

Returns whether the chip was run on a vr exit event.
Use vrExitPly to get the player.

n = vrExitPly()

Returns the player to exit vr, causing the vr exit event.

runOnVRPickup(n enable)

If enable is not 0, sets the chip to run on players in VR picking up a prop.
Else, stops it from running on those events.

n = vrPickupClk()

Returns whether the chip was called on a vr pickup event.
Use vrPickupPly to get the player, vrPickupEnt to get the prop.

e = vrPickupPly()

Returns the player to pickup a prop in vr, causing the prop pickup event.

e = vrPickupEnt()

Returns the prop that was picked up by vrPickupPly.

runOnVRDrop(n enable)

If enable is not 0, sets the chip to run on players in VR dropping a prop.
Else, stops it from running on those events.

n = vrDropClk()

Returns whether the chip was called on a vr prop drop event.
Use vrDropPly to get the player, vrDropEnt to get the prop.

e = vrDropPly()

Returns the player who dropped a prop in vr, causing the prop drop event.

e = vrDropEnt()

Returns the prop that was dropped by vrDropPly.

Example Todo, Feel free to post one in our discussions to have it be put here!

See more in-depth examples in our Discussions