This article's documentation is for anything that uses the Source engine. Click here for more information.

give

From Valve Developer Community
Jump to navigation Jump to search

give is a console command available in all Source Source games. give is a console command that gives the player (or, rather, spawns beneath their feet) any specified entity.

This command requires sv_cheats 1 in multiplayer games like Team Fortress 2, but not singleplayer games. Valve did not mark this as a cheat in Portal 2, and it allows for some very clever uses in challenge mode.

Note.pngNote:Some entities will not work properly with this command because they need to be set up through Hammer.

Syntax

give ENTITY

In Half-Life 2, give weapon_rpg will spawn a rocket launcher under the player (which they will usually immediately pick up).

See also