Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Logic case
From HalfLife 2 Knowledge Base
Contents |
[edit]
logic_case
Source(core) Point Entity
[edit]
description
Compares an input to up to 16 preset values. If the input value is the same as any of the preset values, an output corresponding to that value is fired.\n\nFor example
[edit]
properties
- Name targetname(target_source)
The name that other entities refer to this entity by. - Case 01 Case01(string)
- Case 02 Case02(string)
- Case 03 Case03(string)
- Case 04 Case04(string)
- Case 05 Case05(string)
- Case 06 Case06(string)
- Case 07 Case07(string)
- Case 08 Case08(string)
- Case 09 Case09(string)
- Case 10 Case10(string)
- Case 11 Case11(string)
- Case 12 Case12(string)
- Case 13 Case13(string)
- Case 14 Case14(string)
- Case 15 Case15(string)
- Case 16 Case16(string)
[edit]
spawn flags
none.
[edit]
inputs
- Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired.
[edit]
outputs
- OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input.
[edit]
related tutorials
Submit your tutorial for logic_case

