Difference between revisions of "Info player equip"

From Valve Developer Community
Jump to: navigation, search
(Created page with "{{Synergy}} '''info_player_equip''' is a point entity available in Synergy. It manages the players' equipment. ==Entity description== Entity that will give the player an...")
 
Line 1: Line 1:
 +
{{wip}}
 
{{Synergy}} '''info_player_equip''' is a [[point entity]] available in [[Synergy]].
 
{{Synergy}} '''info_player_equip''' is a [[point entity]] available in [[Synergy]].
 
It manages the players' equipment.
 
It manages the players' equipment.
Line 7: Line 8:
  
 
==Keyvalues==
 
==Keyvalues==
{{KV|StartDisabled||Start this entity Enabled or Disabled}}
+
{{KV|StartDisabled|choices|Start this entity Enabled or Disabled}}
 +
:* 0 : Start Disabled.
 +
:* 1 : Start Enabled.
 
{{KV|EquipPlayer||Equip the [[!activator]] of this input with the items contained in this entity, even if this entity is disabled.  Activator must be a player.}}
 
{{KV|EquipPlayer||Equip the [[!activator]] of this input with the items contained in this entity, even if this entity is disabled.  Activator must be a player.}}
 
{{KV|EquipAllPlayers||Equip every living player with the items contained in this entity, even if this entity is disabled.}}
 
{{KV|EquipAllPlayers||Equip every living player with the items contained in this entity, even if this entity is disabled.}}
Line 15: Line 18:
 
{{IO|Enable|}}
 
{{IO|Enable|}}
 
{{IO|Disable|}}
 
{{IO|Disable|}}
; <code>SetCheckPoint <[[string]]></code>
 
: Enables the named [[info_player_coop]] as the current checkpoint entity and disables all others.
 
; <code>TeleportPlayers <[[string]]></code>
 
: Teleport all players immediately to the specified [[info_teleport_destination]] entity, regardless of free move area.
 
{{I Targetname}}
 
  
 
==Outputs==
 
==Outputs==
Line 26: Line 24:
 
==See also==
 
==See also==
 
*[[Synergy_Entities]]
 
*[[Synergy_Entities]]
*[[info_player_coop]]
 
*[[info_global_settings]]
 

Revision as of 19:38, 3 November 2011


<Synergy> info_player_equip is a point entity available in Synergy. It manages the players' equipment.

Entity description

Entity that will give the player any equipment specified by it's key values (in the form of 'entity_classname' 'number_of_items'). This entity replaces the functionality of the game_player_equip.

Tip.png Tip: Multiple info_player_equip entities can exist simultaneously be used to toggle between different "sets" of equipment.

Keyvalues

StartDisabled <choices>
Start this entity Enabled or Disabled
  • 0 : Start Disabled.
  • 1 : Start Enabled.
EquipPlayer
Equip the !activator of this input with the items contained in this entity, even if this entity is disabled. Activator must be a player.
EquipAllPlayers
Equip every living player with the items contained in this entity, even if this entity is disabled.

Targetname:

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (in all games since Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function (thinkfunction) <string> (in all games since Left 4 Dead 2)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note.png Note: Try to avoid expensive operations in this function, as it may cause performance problems.

Inputs

Enable
Disable

Outputs

Targetname:

OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (only in Left 4 Dead Left 4 Dead 2)
This output fires when the entity is killed and removed from the game.

See also