Add a VRC_Pickup.Pickup function
interested
Kaj
VRC_Pickup.Drop exists, yet there is no way to force desktop users to automatically pick up an auto-hold enabled object.
VR users currently wouldn't need this feature, as they can have pickups repeatedly moved to their tracking data hand position until they grip it.
This feature would be useful for automatic inventory systems (desktop keyboard number keys or Half Life Alyx style VR menus)
Log In
Fax
updated the status to
interested
Fax
Merged in a post:
Add an "Equip" method to the VRCPickup component
SilentEcho001
It's pretty annoying that you can't force equip things to players hands to make say things like custom inventory items or props for game modes more user-friendly. Games like fish would benefit from this with there fishing rod being auto equipped when spawned, and shooters don't need to hover a gun in front of you to pick up.
Fax
Merged in a post:
Add udon call for pickup object
zeshin
There is a way to call the VRCPickup to drop and item, but not to pick it up. I'd be nice to be able to specify both who should pick it up, in what hand, and any relative information needed. Doing this would likly need to override the autohold to true when the event occurs
Fax
Merged in a post:
Force pickup
CyanLaser
We already have force drop, but nothing for picking up up pickups.
Fax
Merged in a post:
A way to force pickup a VRC_Pickup
Jar
A VRC_Pickup.Pickup() method would be nice. We have VRC_Pickup.Drop() which forces a pickup to be dropped. Pickup() would be a counterpart to this, forcing a grab.
There's cool stuff you could do with this, I'm imagining better two-handed manipulation of pickups, and surely there is a lot of other inventory-related stuff you could do.
Currently a common design for player inventory items is to spawn/teleport them to be floating in front of your face. Even if spawned at waist level or something, these items get in the way of clicking on other stuff, especially in desktop or mobile. It would be nice if udon could just put it in your hand, already grabbed, especially for non-vr players.
How I imagine it could work:
Call VRC_PIckup.Pickup(pickuphand) to basically emulate grabbing the item with that hand. If the hand's already grabbing something, this does nothing.
Even though the grab input isn't actually in the down position, their hand is holding the pickup, until the grab input is actually pressed (which is then ignored because you're already grabbing) and then released (dropping it like normal).
It might seem a little weird to have an object suddenly held in your hand without the input pressed, but still I think it's really worth having.
Jar
This should really be a thing, still. Five years later at least..
I used to think the only reason we don't have a vrc_pickup.pickup function was because making vr players do an additional grab-release input might be weird. But now with the new VRC Pickup version 1.1, auto-hold pickups now require pressing the grab-release action twice to drop something. And it seems fine. So with that sorted, I don't see any reason why we don't have this Pickup() function yet (if that makes sense)
StackOverflow
This is very useful for desktop users to have multiple objects in their inventory and switch with key press. Also, step-to-pick-up like in counter strike will need this.
If there is a reason for not exposing it in Udon API, at least you can share your concern with us.
StorfiX
We really need this so badly. This would be helpful so much for making game worlds.
RavenWorks
I just noticed that while the docs don't mention it, the autocomplete for VRCPlayerAPI includes "SetPickupInHand"? I haven't tested it yet though
Glooca
RavenWorks I just tested it, it's not exposed to Udon
RavenWorks
duplicating this: https://feedback.vrchat.com/udon/p/add-a-vrc-pickuppickup-function
Load More
→