logic_achievement
Jump to navigation
Jump to search
Code classes:
CLogicAchievement
CLogicalEntity
CServerOnlyEntity
CBaseEntity
(all ents)
logic_achievement
is a point entity present in the Half-Life 2 series and Portal 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 ) - 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.