Give: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		 Note:Some entities will not work properly with this command because they need to be set up through Hammer.
Note:Some entities will not work properly with this command because they need to be set up through Hammer.
		
	
| mNo edit summary |  (not sure about this tip) | ||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| {{This is a|console command|name=give}} | |||
| '''<code>give</code>''' is a console command that gives the player (or, rather, spawns beneath their feet) any specified entity. | '''<code>give</code>''' is a console command that gives the player (or, rather, spawns beneath their feet) any specified entity. | ||
| Line 4: | Line 5: | ||
| {{note|Some entities will not work properly with this command because they need to be set up through Hammer.}} | {{note|Some entities will not work properly with this command because they need to be set up through Hammer.}} | ||
| ==Syntax== | ==Syntax== | ||
| Line 12: | Line 11: | ||
| In Half-Life 2, <code>give [[weapon_rpg]]</code> will spawn a rocket launcher under the player (which they will usually immediately pick up). | In Half-Life 2, <code>give [[weapon_rpg]]</code> will spawn a rocket launcher under the player (which they will usually immediately pick up). | ||
| ==See  | ==See also== | ||
| *{{ent|ent_create}}, a command like <code>give</code>, but things spawn where the player is looking. | *{{ent|ent_create}}, a command like <code>give</code>, but things spawn where the player is looking. | ||
| *[[:Category:Weapons]] - A list of [[Half-Life 2]] weapons. | *[[:Category:Weapons]] - A list of [[Half-Life 2]] weapons. | ||
| *[[:Category:Items]] - A list of [[Half-Life 2]] items and ammo. | *[[:Category:Items]] - A list of [[Half-Life 2]] items and ammo. | ||
| *[[:Category:Counter-Strike:_Source_Entities]] - A list of mostly [[Counter-Strike: Source]] weapons and ammo. | *[[:Category:Counter-Strike:_Source_Entities]] - A list of mostly [[Counter-Strike: Source]] weapons and ammo. | ||
Latest revision as of 04:05, 5 April 2025
give  is a   console command  available in all  Source games.
 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:Some entities will not work properly with this command because they need to be set up through Hammer.
Note: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
- ent_create, a command like give, but things spawn where the player is looking.
- Category:Weapons - A list of Half-Life 2 weapons.
- Category:Items - A list of Half-Life 2 items and ammo.
- Category:Counter-Strike:_Source_Entities - A list of mostly Counter-Strike: Source weapons and ammo.
