Difference between revisions of "Button target"

From Sven Co-op
Jump to navigation Jump to search
(Import of converted entguide pages from Sven Manor.)
 
m (Formatting, typos, links etc.)
Line 4: Line 4:
 
}}
 
}}
  
A brush entity, which, in its essence, acts like a func_button, except that it has been designed specifically for triggering only when damaged unless set up otherwise. The damage it receives does not matter. Entity sends 'On' and 'Off' outputs alternately.
+
A brush entity, which, in its essence, acts like a [[func_button]], except that it has been designed specifically for triggering only when damaged unless set up otherwise. The damage it receives does not matter. Entity sends 'On' and 'Off' outputs alternately.
  
 
== Keyvalues ==
 
== Keyvalues ==
Line 13: Line 13:
  
 
{{Entity_flag|1|Use activates|If set, the button_target can also be activated by a player using it. This is enabled by default!}}
 
{{Entity_flag|1|Use activates|If set, the button_target can also be activated by a player using it. This is enabled by default!}}
{{Entity_flag|2|Start on|If set, the button_target will send first output as 'Off', the second activation will be 'On' and next one 'Off' again e.t.c. Leave it empty to make first signal send on activation as 'On', second one 'Off' e.t.c.}}
+
{{Entity_flag|2|Start on|If set, the button_target will send first output as 'Off', the second activation will be 'On' and next one 'Off' again etc. Leave it empty to make first signal send on activation as 'On', second one 'Off' etc.}}
  
 
== Changes ==
 
== Changes ==

Revision as of 23:46, 27 January 2019

button_target
Type

brush

Status

supported

 


A brush entity, which, in its essence, acts like a func_button, except that it has been designed specifically for triggering only when damaged unless set up otherwise. The damage it receives does not matter. Entity sends 'On' and 'Off' outputs alternately.

1 Keyvalues

Use Type : use_type

Set the use-type with which the button will fire its targets. Default is 'Toggle'.

2 Flags

1 : Use activates

If set, the button_target can also be activated by a player using it. This is enabled by default!

2 : Start on

If set, the button_target will send first output as 'Off', the second activation will be 'On' and next one 'Off' again etc. Leave it empty to make first signal send on activation as 'On', second one 'Off' etc.

3 Changes

5.11: Added 'Use Type' keyvalue.