game_player_equip
Jump to navigation
Jump to search
Code classes:
CGamePlayerEquip
CRulePointEntity
CRuleEntity
CBaseEntity
(all ents)
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:
- Press the SmartEdit button (in order to turn it off).
- Click Add to add a new keyvalue.
- Insert the entity's classname in the Key field. Up to 32 different types of entities may be given.
- 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 Half-Life 2: Deathmatch(co-op), players will automatically be given the specified items upon spawning.
- 2: Strip All Weapons First (only available in ) - Takes away the weapons the player currently has before giving the new one.
- 4: Only Strip Same Weapon Type (only available in ) - 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 aplayer
, the game can crash. - TriggerForAllPlayers (only available in )
- Gives the entities to all players in the server at once.
- TriggerForActivatedPlayer
<string>
(only available in ) - Gives the activator the entity specified in the parameter.