Player pickup: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Port of https://src-ents.shoutwiki.com/wiki/Player_pickup)
 
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:player_pickup}}
{{Ent not in fgd|nolink=1|because=there is no reason}}
{{Ent not in fgd|nolink=1|because=there is no reason}}
{{CD|CPlayerPickupController|file1=weapon_physcannon.cpp}}
{{CD|CPlayerPickupController|file1=weapon_physcannon.cpp}}
{{code|player_pickup}} is a [[point entity]] present in most {{source|4}} games. It's an entity the {{ent|player}} creates when they pick an object up, and keeps it "in their grip". Not used with the [[weapon_physcannon|gravity gun]], despite being in the same cpp file as it.
{{code|player_pickup}} is a [[point entity]] present in most {{source|4}} games. It's an entity the {{ent|player}} creates when they pick an object up, and keeps it "in their grip". Not used with the [[weapon_physcannon|gravity gun]], despite being in the same cpp file as it.
{{note|''Kill'' input will cause players to release objects they are holding.}}
{{note|''Kill'' input will cause players to release objects they are holding.}}

Latest revision as of 05:37, 5 September 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because there is no reason.
C++ Class hierarchy
CPlayerPickupController
CBaseEntity
C++ weapon_physcannon.cpp

player_pickup is a point entity present in most Source Source games. It's an entity the player creates when they pick an object up, and keeps it "in their grip". Not used with the gravity gun, despite being in the same cpp file as it.

Note.pngNote:Kill input will cause players to release objects they are holding.