Template:I PlayerCompanion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m ("Clears" will work too.)
(Reformatted to use IO templates, added to Input Templates category)
Line 1: Line 1:
{{ScrollBox|title=PlayerCompanion|
{{ScrollBox|title=PlayerCompanion|
; {{EP1 add|<code>OutsideTransition</code>}}
{{IO|OutsideTransition|Use this input to teleport the NPC to a [[hint node]] with the "Player Squad Transition Point" hint type.|since=EP1}}
: Use this input to teleport the NPC to a [[hint node]] with the "Player Squad Transition Point" hint type
{{IO|EnableAlwaysTransition|since=EP1}}
; {{EP1 add|<code>EnableAlwaysTransition</code>}}
{{IO|DisableAlwaysTransition|If enabled, this NPC will always teleport to a Player Squad Transition Point even if they're not within the {{ent|trigger_transition}}.|since=EP1}}
; {{EP1 add|<code>DisableAlwaysTransition</code>}}
{{IO|MakeGameEndAlly|since=EP1}}
: If enabled, this NPC will always teleport to a Player Squad Transition Point even if they're not within the [[trigger_transition]]
{{IO|MakeRegularAlly|Determines whether the game should end if this character dies.|since=EP1}}
; {{EP1 add|<code>MakeGameEndAlly</code>}}
{{IO|EnableWeaponPickup|since=EP1}}
; {{EP1 add|<code>MakeRegularAlly</code>}}
{{IO|DisableWeaponPickup|Enables/disables weapon pickup.|since=EP1}}
: Determines whether the game should end if this character dies.
{{IO|GiveWeapon|param=classname|Gives the NPC a weapon immediately.|since=EP1}}
; {{EP1 add|<code>EnableWeaponPickup</code>}}
{{IO|ClearAllOutputs|Clears every output that this NPC has.|since=Episodic}}
; {{EP1 add|<code>DisableWeaponPickup</code>}}
}}<noinclude>
: Enables/disables weapon pickup.
[[Category:Input Templates|PlayerCompanion]]
; {{EP1 add|<code>GiveWeapon <[[classname]]></code>}}
</noinclude>
: Gives the NPC a weapon immediately
; {{episodic add|<code>ClearAllOutputs</code>}}
: Clears every output that this NPC has.
}}

Revision as of 18:49, 23 January 2020

PlayerCompanion:
OutsideTransition  (in all games since Half-Life 2: Episode One)
Use this input to teleport the NPC to a hint node with the "Player Squad Transition Point" hint type.
EnableAlwaysTransition  (in all games since Half-Life 2: Episode One)
DisableAlwaysTransition  (in all games since Half-Life 2: Episode One)
If enabled, this NPC will always teleport to a Player Squad Transition Point even if they're not within the trigger_transition.
MakeGameEndAlly  (in all games since Half-Life 2: Episode One)
MakeRegularAlly  (in all games since Half-Life 2: Episode One)
Determines whether the game should end if this character dies.
EnableWeaponPickup  (in all games since Half-Life 2: Episode One)
DisableWeaponPickup  (in all games since Half-Life 2: Episode One)
Enables/disables weapon pickup.
GiveWeapon <classname> (in all games since Half-Life 2: Episode One)
Gives the NPC a weapon immediately.
ClearAllOutputs  (in all games since Half-Life 2: Episode One Half-Life 2: Episode Two)
Clears every output that this NPC has.