game_player_equip

From Source Entities
Jump to navigation Jump to search

Code classes:

game_player_equip is a point entity present in all Source games. It gives the player an entity in the same manner the give command does.

In order to tell this entity what to give the player:

  1. Press the SmartEdit button (in order to turn it off).
  2. Click Add to add a new keyvalue.
  3. Insert the entity's classname in the Key field. Up to 32 different types of entities may be given.
  4. Specify how many instances of the entity to spawn in the Value field. Maximum is 32. This allows you to spawn up to 1024 entities.

Flags[edit | edit source]

  • 1: Use Only - Makes the entity only activate from an input. Otherwise in Hl2.pngHalf-Life 2: DeathmatchTf2.pngCss.pngP2.png(co-op)Csgo-small.png, players will automatically be given the specified items upon spawning.
  • 2: Strip All Weapons First (only available in Csgo-small.png) - Takes away the weapons the player currently has before giving the new one.
  • 4: Only Strip Same Weapon Type (only available in Csgo-small.png) - If the player already has a weapon of the type being given, take that one away and give a fresh one (otherwise, the player won't be given anything).

Inputs[edit | edit source]

Use (Not in FGD)
Gives the !activator the items. Important: If the activator is not a player, the game can crash.
TriggerForAllPlayers  (only available in Csgo-small.png)
Gives the entities to all players in the server at once.
TriggerForActivatedPlayer <string> (only available in Csgo-small.png)
Gives the activator the entity specified in the parameter.

See Also[edit | edit source]