Ttt logic role: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
||
Line 1: | Line 1: | ||
{{this is a|point|name=ttt_logic_role|game=Garry's Mod}}This point entity is used to test the role of the !activator. You set what role to test for. If the !activator of the ttt_logic_role is the specified role, then the entity will fire a OnPass output, if it is not the correct role it will fire OnFail. It is VERY important to note that you do not want to set a button to start the test because that will test whoever presses the button. Instead, use a button to enable a {{ent|trigger_multiple}} that will in turn fire the test output. This ensures that whoever is in the specific zone is the !activator. It is recommended to use this entity rather than the brush entity {{ent|ttt_traitor_check}}, but may not work depending on some tester designs. | {{this is a|point entity|name=ttt_logic_role|game=Garry's Mod}}This point entity is used to test the role of the !activator. You set what role to test for. If the !activator of the ttt_logic_role is the specified role, then the entity will fire a OnPass output, if it is not the correct role it will fire OnFail. It is VERY important to note that you do not want to set a button to start the test because that will test whoever presses the button. Instead, use a button to enable a {{ent|trigger_multiple}} that will in turn fire the test output. This ensures that whoever is in the specific zone is the !activator. It is recommended to use this entity rather than the brush entity {{ent|ttt_traitor_check}}, but may not work depending on some tester designs. | ||
== Keyvalues == | == Keyvalues == |
Revision as of 21:25, 17 May 2024
ttt_logic_role
is a point entity available in Garry's Mod.This point entity is used to test the role of the !activator. You set what role to test for. If the !activator of the ttt_logic_role is the specified role, then the entity will fire a OnPass output, if it is not the correct role it will fire OnFail. It is VERY important to note that you do not want to set a button to start the test because that will test whoever presses the button. Instead, use a button to enable a trigger_multiple that will in turn fire the test output. This ensures that whoever is in the specific zone is the !activator. It is recommended to use this entity rather than the brush entity ttt_traitor_check, but may not work depending on some tester designs.
Keyvalues
- Player role to test for ([todo internal name (i)]) <integer>
- What role the entity will fire OnPass for. Can be either Innocent, Detective, Traitor, or Any Role.
Inputs
- TestActivator
- Test the activator for the given Role (ie. if it's a traitor/detective/etc) and fires OnPass or OnFail output. If activator is not a valid player it will always fail.
Outputs
- OnPass
- Fired in response to TestActivator input if the activator player is of the role set in this ent.
- OnFail
- Fired in response to TestActivator input if the activator player is NOT of the role set in this ent.