Game player equip: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
* {{kv targetname}} | * {{kv targetname}} | ||
==Flags== | ==Flags== | ||
Line 22: | Line 19: | ||
==Inputs== | ==Inputs== | ||
* | * {{i targetname}} | ||
* {{not in fgd}} '''Use''' | * {{not in fgd}} '''Use''' | ||
: This is used in conjution with the Use Only flag to | : This is used in conjution with the Use Only flag to trigger it. | ||
: <code>input Use(void) : "Equip player"</code> | |||
==Outputs== | ==Outputs== | ||
Revision as of 23:03, 17 August 2005
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
Flags
- 1 : Use Only
- Makes it so that the entity is only triggered and cannot be picked up.
Inputs
- This is used in conjution with the Use Only flag to trigger it.
input Use(void) : "Equip player"