Template:I PlayerCompanion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Reformatted to use IO templates, added to Input Templates category)
m (added language bar and updated template usage.)
Line 1: Line 1:
{{ScrollBox|title=PlayerCompanion|
{{lang|{{FULLPAGENAME}}}}
{{IO|OutsideTransition|Use this input to teleport the NPC to a [[hint node]] with the "Player Squad Transition Point" hint type.|since=EP1}}
<onlyinclude>{{minititle|PlayerCompanion}}
{{IO|EnableAlwaysTransition|since=EP1}}
{{IO|OutsideTransition|Use this input to teleport the NPC to a [[hint node]] with the "Player Squad Transition Point" hint type.|since={{hl2ep1}}}}
{{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}}
{{IO|EnableAlwaysTransition|since={{hl2ep1}}}}
{{IO|MakeGameEndAlly|since=EP1}}
{{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={{hl2ep1}}}}
{{IO|MakeRegularAlly|Determines whether the game should end if this character dies.|since=EP1}}
{{IO|MakeGameEndAlly|since={{hl2ep1}}}}
{{IO|EnableWeaponPickup|since=EP1}}
{{IO|MakeRegularAlly|Determines whether the game should end if this character dies.|since={{hl2ep1}}}}
{{IO|DisableWeaponPickup|Enables/disables weapon pickup.|since=EP1}}
{{IO|EnableWeaponPickup|since={{hl2ep1}}}}
{{IO|GiveWeapon|param=classname|Gives the NPC a weapon immediately.|since=EP1}}
{{IO|DisableWeaponPickup|Enables/disables weapon pickup.|since={{hl2ep1}}}}
{{IO|ClearAllOutputs|Clears every output that this NPC has.|since=Episodic}}
{{IO|GiveWeapon|param=classname|Gives the NPC a weapon immediately.|since={{hl2ep1}}}}
}}<noinclude>
{{IO|ClearAllOutputs|Clears every output that this NPC has.|only={{hl2episodes}}}}</noinclude>
[[Category:Input Templates|PlayerCompanion]]
[[Category:Input Templates|PlayerCompanion]]
</noinclude>

Revision as of 15:48, 20 October 2022

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  (only in Half-Life 2: Episode One Half-Life 2: Episode Two)
Clears every output that this NPC has.