Template:I PlayerCompanion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Revision + New input)
Line 4: Line 4:
; {{EP1 add|<code>EnableAlwaysTransition</code>}}
; {{EP1 add|<code>EnableAlwaysTransition</code>}}
; {{EP1 add|<code>DisableAlwaysTransition</code>}}
; {{EP1 add|<code>DisableAlwaysTransition</code>}}
: This NPC will (or will not) always teleport to a Player Squad Transition Point even if they're not within the [[trigger_transition]]
: If enabled, this NPC will always teleport to a Player Squad Transition Point even if they're not within the [[trigger_transition]]
; {{EP1 add|<code>MakeGameEndAlly</code>}}
; {{EP1 add|<code>MakeGameEndAlly</code>}}
; {{EP1 add|<code>MakeRegularAlly</code>}}
; {{EP1 add|<code>MakeRegularAlly</code>}}
: Decide whether the game should end if this character dies
: Determines whether the game should end if this character dies.
; {{EP1 add|<code>EnableWeaponPickup</code>}}
; {{EP1 add|<code>EnableWeaponPickup</code>}}
; {{EP1 add|<code>DisableWeaponPickup</code>}}
; {{EP1 add|<code>DisableWeaponPickup</code>}}
: Enable/disable weapon pickup
: Enables/disables weapon pickup.
; {{EP1 add|<code>GiveWeapon <[[classname]]></code>}}
; {{EP1 add|<code>GiveWeapon <[[classname]]></code>}}
: Gives the NPC a weapon immediately
: Gives the NPC a weapon immediately
; {{episodic add|<code>ClearAllOutputs</code>}}
: Obliterates every output that this NPC has.
}}
}}

Revision as of 08:25, 27 September 2018

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
Template:Episodic add
Obliterates every output that this NPC has.