Logic achievement: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Added infotable)
Line 1: Line 1:
{{langsp}}
{{langsp}}
It fires events that unlock or aid progression toward achievements.
It fires events that unlock or aid progression toward achievements.
{{infotable
|logic_achievement
|img=[[File:Logic achievement.png]]
|type=e0
|engine=2
|in=0
}}


Since achievements cannot currently be created or modified without access to the [[Steamworks]] backend, this entity is of limited use to modders.
Since achievements cannot currently be created or modified without access to the [[Steamworks]] backend, this entity is of limited use to modders.

Revision as of 12:18, 13 October 2023

English (en)Translate (Translate)

It fires events that unlock or aid progression toward achievements.

logic_achievement
Logic achievement.png
TypePoint entity
EngineSource Source
AvailabilityIn all games
 

Since achievements cannot currently be created or modified without access to the Steamworks backend, this entity is of limited use to modders.

Note.pngNote:In fact, it is still possible to create your own achievements that does not rely on Steam, but are fully functional within the in-game achievement system.
Example: Black Mesa Black Mesa (original 2012 Mod version)

Keyvalues

Achievement Event <choices>
The event that will be triggered. A game will only accept its own achievements.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

Toggle
If the entity is disabled, it cannot relay the achievement message.
FireEvent
Tells the achievement system the specifed event has occured.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.


Outputs

OnFired
Fires when the FireEvent input is received.