Skip to main content

STPickup

class StageTime.SDK.STPickup

Lets players pick up this object in VR and on desktop (like VRC_Pickup + VRC_ObjectSync). Its position is synced for everyone and the holder becomes the owner. Needs a collider. Scripts on the same GameObject get OnPickup, OnDrop, OnPickupUseDown and OnPickupUseUp.

Add it with Add Component → StageTime/ST Pickup.

Fields​

pickupable​

bool pickupable

Players can pick this up.

DisallowTheft​

bool DisallowTheft

Others cannot take it out of the holder's hand.

InteractionText​

string InteractionText

Shown when a player points at it.

UseText​

string UseText

Shown while held, for the use button. Empty = no use action.

Properties​

IsHeld​

bool IsHeld

True while someone holds it.

currentPlayer​

StageTimePlayer currentPlayer

The player holding it, or null.

Methods​

Drop​

void Drop()

Makes the local holder drop it.