logic_achievement

From Source Entities
Jump to navigation Jump to search

Code classes:

logic_achievement is a point entity present in the Hl2.pngHalf-Life 2 series and P2.pngPortal 2, but not Half-Life 2: Deathmatch. It unlocks an achievement. Since achievements can only be created with the Steamworks backend, this entity is of limited use to modders.

Keyvalues[edit | edit source]

Achievement Event (AchievementEvent) <choices>
Achievement to give.
Start Disabled (StartDisabled) <boolean>
Stay inactive until Enabled.

Inputs[edit | edit source]

FireEvent
Gives the achievement.
Enable
Makes the entity active.
Disable
Makes the entity inactive.
Toggle
If on, turn off. If off, turn on.
SetTargetPlayer <target_destination> (only available in P2.png)
Limits the achievement to only be earned by the specified player. If not used, the achievement will be given to both players.

Outputs[edit | edit source]

OnFired
Fires when FireEvent is sent and the entity is enabled.