entityguide‎ > ‎

trigger_cameratarget

A brush-based entity you can click on using the mouse cursor function of the trigger_camera.

Keyvalues


"
[Left/Right/Third] [Double] Click Action", mouse_action_<0-2>_<0-1:
Perform selected action when this entity is clicked:
  • Trigger Off: triggers target (specified in Click Target) entity with 'Off' state
  • Trigger On: triggers target (specified in Click Targetentity with 'On' state
  • Trigger Toggle: triggers target (specified in Click Target) entity with 'Toggle' state
  • Remove: removes target (specified in Click Targetentity from the world
  • Hurt: deal a damage to target (specified in Click Target) entity (Parameter = damage to deal)
  • Heal: heal a target (specified in Click Target) (Parameter = heal amount)

"[Left/Right/Third] [Double] Click Param", mouse_param_<0-2>_<0-1:
If 'Heal' or 'Hurt' Click Action" is selected, this is amount of heal/damage to deal to "Click Target" target.

"[Left/Right/Third] [Double] Click Target", mouse_target_<0-2>_<0-1:
Entity to trigger with specified action and parameter.

"Block Drag Repeating Action", <different>:
Block a repeating action from firing when a mouse button is held down then moved about whilst held, e.g. constantly 
triggering a door open/close just by holding a mouse button and jittering movement a bit.

"Mouse Digital Action Reset Time", mouse_digital_action_reset:
Change the wait/reset time between each digital mouse action, though there is still a minimum of 0.01 (10ms).
Digital
 
mouse action including clicking, double-clicking and wheel up/down. This doesn't apply to analogue actions,
being
 moving or dragging.


Flags


1: "Invisible": All brushes of this entity are invisible- can still be clicked, have collision, it's not visible, bullets can be shot
through it (just like in the 'CLIP' brushes), but any other projectiles can't (like grenades, spore grenades, hornets e.t.c.).

2: "Start Off": Disable entity at map start- trigger_cameratarget need to be triggered in order to be usable.



Notes

  • It's only trigger entity that can be visible in-game.


Issues

  • All double click actions doesn't work properly.

Changes
  • 5.23: Added 'Block Drag Repeating Action' and 'Mouse Digital Action Reset Time' keyvalues.


    Comments