Template:I PlayerCompanion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m ("Clears" will work too.)
mNo edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ScrollBox|title=PlayerCompanion|
<onlyinclude>{{minititle|PlayerCompanion}}
; {{EP1 add|<code>OutsideTransition</code>}}
{{I|OutsideTransition|Use this input to teleport the NPC to a [[hint node]] with the "Player Squad Transition Point" hint type.|since={{hl2ep1}}}}
: Use this input to teleport the NPC to a [[hint node]] with the "Player Squad Transition Point" hint type
{{I|EnableAlwaysTransition|since={{hl2ep1}}}}
; {{EP1 add|<code>EnableAlwaysTransition</code>}}
{{I|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}}}}
; {{EP1 add|<code>DisableAlwaysTransition</code>}}
{{I|MakeGameEndAlly|since={{hl2ep1}}}}
: If enabled, this NPC will always teleport to a Player Squad Transition Point even if they're not within the [[trigger_transition]]
{{I|MakeRegularAlly|Determines whether the game should end if this character dies.|since={{hl2ep1}}}}
; {{EP1 add|<code>MakeGameEndAlly</code>}}
{{I|EnableWeaponPickup|since={{hl2ep1}}}}
; {{EP1 add|<code>MakeRegularAlly</code>}}
{{I|DisableWeaponPickup|Enables/disables weapon pickup.|since={{hl2ep1}}}}
: Determines whether the game should end if this character dies.
{{I|GiveWeapon|param=classname|Gives the NPC a weapon immediately.|since={{hl2ep1}}}}
; {{EP1 add|<code>EnableWeaponPickup</code>}}
{{I|ClearAllOutputs|Clears every output that this NPC has.|only={{hl2episodes}}}}</onlyinclude>
; {{EP1 add|<code>DisableWeaponPickup</code>}}
{{I|EnableSpeakWhileScripting|Allow this NPC to speak [[Response System|responses]] while in a [[Scripted_sequence|scripted sequence]] or while StartScripting is active.|since={{hl2ep2}}}}
: Enables/disables weapon pickup.
{{I|DisableSpeakWhileScripting|Cancels this NPC's ability to speak responses while in a scripted sequence or while StartScripting is active if it was previously enabled by EnableSpeakWhileScripting.|since={{hl2ep2}}}}
; {{EP1 add|<code>GiveWeapon <[[classname]]></code>}}
[[Category:Input Templates|PlayerCompanion]]
: Gives the NPC a weapon immediately
; {{episodic add|<code>ClearAllOutputs</code>}}
: Clears every output that this NPC has.
}}

Latest revision as of 09:50, 3 October 2024

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.
EnableSpeakWhileScripting  (in all games since Half-Life 2: Episode Two)
Allow this NPC to speak responses while in a scripted sequence or while StartScripting is active.
DisableSpeakWhileScripting  (in all games since Half-Life 2: Episode Two)
Cancels this NPC's ability to speak responses while in a scripted sequence or while StartScripting is active if it was previously enabled by EnableSpeakWhileScripting.