Game player equip

From Valve Developer Community
Revision as of 18:32, 12 August 2005 by Ts2do (talk | contribs)
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

This is the entity used to equip the player with a multitude of things like weapons, ammo, and items. The entity requires a few steps to use properly. First you have to tell it what to equip, and then how.

To properly use the entity you have to turn smart edit off, now you can add a new keyvalue. The name should be the item, say weapon_ar2. Then the value should be the number of them, say 1. Now the game_player_equip wil equip 1 combine assualt rifle.

To get the game_player_equip to equip you have 2 ways of doing it. Simply leaving it where you palce it, then it will equip when the player runs over it, like picking it up. Or triggering it, to do this go over to the flags and check Use Only. Now set up a trigger_multiple to equip it. A problem occurs in that the defualt .fgd does not contain the correct trigger, simply type in Use instead. Hammer wont like it, but it is correct.

Keyvalues

  • master
<string> Legacy support: The name of a master entity. If the master hasn't been activated, this entity will not activate.

Flags

  • 1 : Use Only
Makes it so that the entity is only triggered and cannot be picked up.

Inputs

  • Kill
Removes this entity from the world.
  • KillHierarchy
Removes this entity and all its children from the world.
  • AddOutput <string>
Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
  • FireUser1-4
Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
This is used in conjution with the Use Only flag to make it triggered.

Outputs

See Also