Scripting / Reference
Interaction
Types in the ParelVR.Volt.Interaction namespace.
VoltHand#
ParelVR.Volt.Interaction.VoltHand enum
Which hand holds something.
Values: None, Left, Right
VoltInteractable#
ParelVR.Volt.Interaction.VoltInteractable component extends VoltSceneComponent
Makes an object usable: players see a prompt when they point at it and the behaviours on the object get OnInteract when they use it.
VoltInteractable properties#
Whether players can use the object right now.
Text shown to the player who points at the object.
How close a player has to be, in metres.
VoltPickup#
ParelVR.Volt.Interaction.VoltPickup component extends VoltSceneComponent
Makes an object something players can pick up and carry. Add a VoltObjectSync as well so everyone sees where it goes.
VoltPickup properties#
The hand that holds the object.
The player who holds the object, or null.
Text shown to the player who points at the object.
True while a player holds the object.
Whether players can pick the object up.
VoltPickup methods#
Makes the local player let go of the object.
VoltStation#
ParelVR.Volt.Interaction.VoltStation component extends VoltSceneComponent
A seat. A player who uses it sits at the station's position until they leave.
VoltStation properties#
True while a player sits in the station.
The player in the station, or null.
VoltStation methods#
Makes the local player leave the station.
Seats the local player in the station.
VoltStationMobility#
ParelVR.Volt.Interaction.VoltStationMobility enum
How a player can leave a station.
| Value | Meaning |
|---|---|
Immobilize (0) |
The player cannot move while seated and leaves by moving or jumping. |
ImmobilizeForVehicle (1) |
The player stays seated until a script calls ExitStation. |
Mobile (2) |
The player can walk while attached to the station. |
