Logic title unlock test: Difference between revisions
Jump to navigation
Jump to search
(Add FGD code for whatever it's worth) |
(Change template name so categories work right) |
||
Line 1: | Line 1: | ||
{{ent not in fgd}} | {{ent not in fgd}} | ||
{{This is a|point entity|name=logic_title_unlock_test|game= | {{This is a|point entity|name=logic_title_unlock_test|game=Portal: Still Alive}} This entity checks if the game is running in Xbox Live Arcade trial mode when activated, and fires an output if it is. Effectively, it behaves like a {{ent|logic_relay}} whose enabled state is tied to the game being in trial mode. | ||
== Keyvalues == | == Keyvalues == |
Revision as of 01:36, 28 January 2025
logic_title_unlock_test
is a point entity available in Portal: Still Alive. This entity checks if the game is running in Xbox Live Arcade trial mode when activated, and fires an output if it is. Effectively, it behaves like a logic_relay whose enabled state is tied to the game being in trial mode.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- TestTitleUnlocked
- Tests the trial mode state.
Outputs
- OnTitleLocked
- Fired in response to TestTitleUnlocked if the game is running in trial mode.
FGD Code
@PointClass base(Targetname) = logic_title_unlock_test: "Checks if the game is running in trial mode, and fires an output if it is." [ input TestTitleUnlocked(void) : "Tests the trial mode state." output OnTitleLocked(void) : "Fired in response to TestTitleUnlocked if the game is running in trial mode." ]