Player classserver
Part of Pickup Objects
Server-side player extensions of the Pickup Objects plugin: what a player holds in their hands and who is dragging their ragdoll.
Summary
Methods
get_dragger()server
Returns the player who is dragging the ragdoll of this player.
get_holding_entity()server
Returns the entity the player is carrying or dragging with their hands.
Methods
Returns the player who is dragging the ragdoll of this player. Serverside only. A ragdoll that is carried like any other object, with the pickup_drag_ragdolls config turned off, does not count.
Returns
- Player the dragging player; nil if the player has no ragdoll, nobody drags it or the Ragdoll plugin is not loaded
Returns the entity the player is carrying or dragging with their hands. Serverside only.
Returns
- Entity the held entity, or nil if the player holds nothing