Template:I PlayerCompanion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{ScrollBox|title=PlayerCompanion|
{{ScrollBox|title=PlayerCompanion|
; {{EP1 add|<code>OutsideTransition</code>}}
; {{EP1 add|<code>OutsideTransition</code>}}
: Use this input to teleport the NPC to a [[hint node]] with the "Player Squad Transition Point" hint type.
: Use this input to teleport the NPC to a [[hint node]] with the "Player Squad Transition Point" hint type
; {{EP1 add|<code>EnableAlwaysTransition</code>}}
; {{EP1 add|<code>EnableAlwaysTransition</code>}}
: Enable the 'always transition' behavior
; {{EP1 add|<code>DisableAlwaysTransition</code>}}
; {{EP1 add|<code>DisableAlwaysTransition</code>}}
: Disable the 'always transition' behavior
: This NPC will (or will not) 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>}}
: Make this NPC a game end ally.
; {{EP1 add|<code>MakeRegularAlly</code>}}
; {{EP1 add|<code>MakeRegularAlly</code>}}
: Make this NPC a regular ally.
: Decide whether the game should end if this character dies
; {{EP1 add|<code>EnableWeaponPickup</code>}}
; {{EP1 add|<code>EnableWeaponPickup</code>}}
: Enable Weapon Pickup
; {{EP1 add|<code>DisableWeaponPickup</code>}}
; {{EP1 add|<code>DisableWeaponPickup</code>}}
: Disable Weapon Pickup
: Enable/disable weapon pickup
; {{EP1 add|<code>GiveWeapon <[[classname]]></code>}}
; {{EP1 add|<code>GiveWeapon <[[classname]]></code>}}
: Gives the NPC a weapon of the specified entity name.
: Gives the NPC a weapon immediately
}}
}}

Revision as of 12:53, 19 July 2009

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)
This NPC will (or will not) 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)
Decide 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)
Enable/disable weapon pickup
GiveWeapon <classname> (in all games since Half-Life 2: Episode One)
Gives the NPC a weapon immediately